String: toLowerCase() : String « java.lang « Java by API






String: toLowerCase()

   
/*
 * Output:
this is a test. this is, too.      
 */

public class MainClass {
  public static void main(String args[]) {
    String org = "This is a test. This is, too.    ";
    System.out.println(org.toLowerCase());
    

  }
}
           
         
    
    
  








Related examples in the same category

1.String.CASE_INSENSITIVE_ORDER
2.new String()
3.new String(byte[] bytes)
4.new String(byte[] ascii, int hibyte)
5.new String(byte[] bytes, int offset, int length)
6.new String(char[] value)
7.new String(char[] value, int offset, int count)
8.new String(String original)
9.String: equals
10.String: compareTo(String stringValue)
11.== vs equals
12.String: charAt(int index)
13.String: copyValueOf(char[] data)
14.String: copyValueOf(char[] data, int offset, int count)
15.String: boolean endsWith(String suffix)
16.String: equalsIgnoreCase
17.String: byte[] getBytes()
18.String: getBytes(String charsetName)
19.String: getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin)
20.String: int hashCode()
21.String: indexOf(int intValue)
22.String: indexOf(String stringValue)
23.String: indexOf(int intValue, int fromIndex)
24.String: indexOf(String stringValue, int fromIndex)
25.String: lastIndexOf(int intValue)
26.String: lastIndexOf(int intValue, int fromIndex)
27.String: lastIndexOf(String stringValue)
28.String: lastIndexOf(String stringValue, int fromIndex)
29.String: int length()
30.String: matches(String regex)
31.String: boolean regionMatches(int toffset, String other, int ooffset, int len)
32.String: replace(char oldChar, char newChar)
33.String: split(String regex)
34.String: String[] split(String regex, int limit)
35.String: boolean startsWith(String prefix)
36.String: substring(int pos)
37.String: substring(int beginIndex, int endIndex)
38.String: trim()
39.String: char[] toCharArray()
40.Character: toLowerCase(char ch)
41.String: toUpperCase()
42.String: valueOf(boolean b)
43.String: valueOf(char c)
44.String: valueOf(char[] data)
45.String: valueOf(char[] data, int offset, int count)
46.String: valueOf(double d)
47.String: valueOf(float f)
48.String: valueOf(int i)
49.String: valueOf(long l)
50.String: valueOf(Object obj)