Convert String to Lower Case in Java
Description
The following code shows how to convert String to Lower Case.
Example
/*from ww w.ja v a 2s .c o m*/
public class Main {
public static void main(String[] args) {
String str = "WWW.Java2s.COM";
str = str.toLowerCase();
System.out.println(str);
}
}
The code above generates the following result.
Home »
Java Tutorial »
Java Data Type »
Java Tutorial »
Java Data Type »