Java Data Type Tutorial - Java Character.charValue()








Syntax

Character.charValue() has the following syntax.

public char charValue()

Example

In the following code shows how to use Character.charValue() method.

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

The output: