toLowerCase()方法是String类方法,用于将给定的字符串转换为小写。 Syntax: 句法: String String_object.toLowerCase(); Here, String_object is a String object which we have to convert into lowercase. The method does not change the string; it returns the lowercase converted string. 在这里, String_...
public String toLowerCase() The toLowerCase() method converts all of the characters in this String to lower case using the rules of the default locale. This is equivalent to calling toLowerCase(Locale.getDefault()). Note: This method is locale sensitive, and may produce unexpected results ...
String.ToLowerCase MethodReference Feedback DefinitionNamespace: Java.Lang Assembly: Mono.Android.dll OverloadsBung rộng bảng ToLowerCase() Converts all of the characters in this String to lower case using the rules of the default locale. ToLowerCase(Locale) Converts all of the...
ExampleGet your own Java Server Convert a string to upper case and lower case letters: String txt = "Hello World"; System.out.println(txt.toUpperCase()); System.out.println(txt.toLowerCase()); Try it Yourself » Definition and UsageThe toLowerCase() method converts a string to lower ...
Java.Awt.Font Java.Beans Java.Interop Java.Interop.Expressions Java.Interop.Tools.JavaCallableWrappers Java.IO Java.Lang Java.Lang AbstractMethodError AbstractStringBuilder ArithmeticException ArrayIndexOutOfBoundsException ArrayStoreException AssertionError Boolean BootstrapMethodError Byte Character Character Constru...
So, when working with thetoLowerCase()method in Java and considering locale-specific characters, it’s essential to be aware that the length of the resulting string may not always be the same. Happy Learning !! References:String Java Doc ...
ThetoLowerCase()method does not change the original string. See Also: The toUpperCase() Method The toLocaleLowerCase() Method The toLocaleUpperCase() Method Syntax string.toLowerCase() Parameters NONE Return Value TypeDescription A stringThe string converted to lowercase. ...
In Java, String.toLowerCase() method converts characters to lowercaseaccording to the default locale. This causes problems if your application works in Turkish locale and especially if you are using this function for a file name or a url that must obey a certain character set. ...
Methods inherited from class java.lang.Object finalize,getClass,notify,notifyAll,wait,wait,wait Constructor Detail StringToLowerCase publicStringToLowerCase() StringToLowerCase publicStringToLowerCase(Objectlhs) Method Detail getOperand publicObjectgetOperand() ...
The toLowerCase() method converts all characters in the string to lowercase characters. Example class Main { public static void main(String[] args) { String str1 = "JAVA PROGRAMMING"; // convert to lower case letters System.out.println(str1.toLowerCase()); } } // Output: java ...