Check out example codes for "java string to lower case". It will help you in understanding the concepts better.

Code Example 1

String s1 = "JAVATPOINT HELLO stRIng";  
String s1lower = s1.toLowerCase(); // s1lower = "javatpoint hello string"

Code Example 2

String txt = "123 World";
System.out.println(txt.toUpperCase());
System.out.println(txt.toLowerCase());

Learn ReactJs, React Native from akashmittal.com