Java String toLowerCase | Java String toUpperCase

toLowerCase() Converts all of the characters in this String to lowercase. Syntax: public String toLowerCase()   toUpperCase(): Converts all of the characters in this String to upper case. Syntax: public String toUpperCase()   Example: class TestString{ String str = “Roy”; public void upperCase(){ //will convert all characters in upper case. System.out.println(str.toUpperCase()); } public void lowerCase(){ //will convert … Read more