Get the numeric value for a char

static int getNumericValue(char ch)
Returns the int value that the specified Unicode character represents.

public class Main {
  public static void main(String[] argv) {
    Character character1 = new Character('a');
    Character character2 = new Character('b');
    System.out.println(character1.toString());

    System.out.println(Character.getNumericValue(character2));
  }
}

The output:


a
11
Home 
  Java Book 
    Essential Classes  

Character:
  1. Create a character object from char value
  2. Get char value from Character object
  3. Check the character type
  4. Get the char type from char value
  5. Change character case
  6. Compare two characters
  7. Convert character to String
  8. Get the numeric value for a char