Get char value from Character object

ReturnMethodSummary
charcharValue()Returns the value of this Character object.

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

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.