Create a character object from char value

ConstructorSummary
Character(char value)Creates a Character object for char value.

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

The output:


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.