Nov 8, 2018

String methods should be remembered for Java interview

char charAt(int index)
Returns the char value at the specified index.

char[] toCharArray()
Converts this string to a new character array.

length() //string length

substring(int beginIndex)

substring(int beginIndex, int endIndex)

Integer.valueOf()//string to integer

String.valueOf()/integer to string