Get char value from Character object
char charValue()
- 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