Sponsered Links
Categories
Sponsered Links

Java String class ToLowerCase Method

 

This example illustrates Java String class ToLowerCase Method. In this example method converts all letters of String in to lower case letters.

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);

  }
}

 
 
Sponsered Links
Latest Updates
 
All Content of this site is for learning only. We do not warrant the correctness of its content. The risk from using it lies entirely with the user. While using this site, you agree to have read and accepted our terms of use and privacy policy.
Copyright © 2009 JSPSERVLETTUTORIAL.INFO All Right Reserved