Change character case

ReturnMethodSummary
static chartoTitleCase(char ch)Converts to titlecase.
static chartoUpperCase(char ch)Converts to uppercase.
static chartoLowerCase(char ch)Converts to lowercase.

public class Main{
  public static void main(String[] argv){
    System.out.println(Character.toTitleCase('a'));    
    System.out.println(Character.toUpperCase('a'));    
    System.out.println(Character.toLowerCase('a'));    

  }
}

The output:


A
A
a
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.