Strings
Strings
String s2 = “Welcome”;
s2 = s1;
1 char charAt(int index) It returns char value for the particular index
6 String substring(int beginIndex, int It returns substring for given begin index and end index.
endIndex)
7 boolean contains(CharSequence s) It returns true or false after matching the sequence of char
value.
10 boolean equals(Object another) It checks the equality of string with the given object.
13 String replace(char old, char new) It replaces all occurrences of the specified char value.
17 String[] split(String regex, int limit) It returns a split string matching regex and limit.
20 int indexOf(int ch, int fromIndex) It returns the specified char value index starting with given
index.
22 int indexOf(String substring, int fromIndex) It returns the specified substring index starting with given index.
28 static String valueOf(int value) It converts given type into string. It is an overloaded method.