Monday 23 June 2014

toLowerCase ()

public String toLowerCase()
Converts all of the characters in this String to lower case using the rules of the default locale.

class StringToLower{
 public static void main(String args[]){
  String str = "eFgHiJkLm";
  String lower = str.toLowerCase();
  
  System.out.println("str = " + str);
  System.out.println("lower = " + lower);
 } 
}

Output
str = eFgHiJkLm
lower = efghijklm




Prevoius                                                 Next                                                 Home

No comments:

Post a Comment