Java toLowerCase () metode
Metode toLowerCase () untuk mengkonversi string ke huruf kecil.
tatabahasa
public String toLowerCase() 或 public String toLowerCase(Locale locale)
parameter
tidak
Kembali Nilai
Dikonversi ke string huruf kecil.
contoh
public class Test { public static void main(String args[]) { String Str = new String("WWW.w3big.com"); System.out.print("返回值 :" ); System.out.println( Str.toLowerCase() ); } }
Atas hasil pelaksanaan program:
返回值 :www.w3big.com