Java toLowerCase () method
toLowerCase () method to convert a string to lowercase.
grammar
public String toLowerCase() 或 public String toLowerCase(Locale locale)
parameter
no
return value
Converted to lowercase string.
Examples
public class Test { public static void main(String args[]) { String Str = new String("WWW.w3big.com"); System.out.print("返回值 :" ); System.out.println( Str.toLowerCase() ); } }
The above program execution results:
返回值 :www.w3big.com