public class StringToLowerCase {
public static void main(String args[]) {
String str= "JSPSERVLETTUTORIAL";
System.out.println("Formated value of string 'str' is:" + str.toLowerCase());
String str1 = new String("JAVATUTORIAL"), str2 = "";
str2 = str1.toLowerCase();
System.out.println("Formated value of string 'str1' is:" + str2);
}
}
|