Java examples for Language Basics:String
Convert String to Lower Case
public class Main { public static void main(String[] args) { /*from w w w .j a v a2 s.c o m*/ String str = "STRING TOLOWERCASE"; String strLower = str.toLowerCase(); System.out.println("Original String: " + str); System.out.println("String changed to lower case: " + strLower); } }