C++:
initialize:
string str1(5, 'c');
string str2("Now is the time...");
string str3(str2, 11, 4);
cout << str1 << endl; //ccccc
cout << str2 << endl; //Now is the time...
cout << str3 << endl; //time
string str;
str.append(n, i); //append n numbers of i
str.at(index); //return char at index
str.empty();
str.length(); //str.size();
Java:
String
reference type
String s;
s.length();
s.charAt(index);
Python:
str = ""
len(str)