String Methods in java String.toUpperCase() returns the String into UpperCase String.toLowercase() returns the String into LowerCase String.charAt(indexValue) returns the character at given index number String.replace(oldString/char,newString/char) returns the String which is replaced with new character/String by old String/character String.replaceFirst(oldString,newString) return the String which is replace of first occurance of old character/String into new character/String String.contains(checkString/character) returns boolean value if the contain the given char/String String.concat(newString) returns the concatenation of new String at the end of oldString, we can also use + to concat the Strings String.equals(checkString) returns the boolean value by checking the values of 2 strings are exactly matched (case sensitive) String.equalsIgnoreCase(checkString) returns the boolean value by che...
Comments
Post a Comment