ToLowerCase converts a string to all lowercase letters: - Java Language Basics

Java examples for Language Basics:String

Description

ToLowerCase converts a string to all lowercase letters:

Demo Code

public class Main {
  public static void main(String[] args) {
    String s = "This Is a Test";
    s = s.toLowerCase();//  w  w  w.  j a  v a  2s  .c  o m

    System.out.println(s);
  }

}

Related Tutorials