14 June 2022
14 June 2022
Method Description
String concat (String str) Concatenates calling String with
str. Note: + also used to do the
same
int length () Returns length of a String
char charAt (int index) Returns the character at
specified location ( from 0)
String substring(int begin) Return the substring from begin index to end
of the string
String substring(int begin, int end) Returns the substring from begin index to
end-1 index.
String replace(char old, char new) To replace every old character with a
new character.