The Character.getNumericValue(int codePoint) java method returns the int value that the specified character (Unicode code point) represents. For example, the character ‘u216C’ (the Roman numeral fifty) will return an int with a value of 50.
The letters A-Z in their uppercase (‘u0041’ through ‘u005A’), lowercase (‘u0061’ through ‘u007A’), and full width variant (‘uFF21’ through ‘uFF3A’ and ‘uFF41’ through ‘uFF5A’) forms have numeric values from 10 through 35. This is independent of the Unicode specification, which does not assign numeric values to these char values.
If the character does not have a numeric value, then -1 is returned. If the character has a numeric value that cannot be represented as a nonnegative integer (for example, a fractional value), then -2 is returned.
The getNumericValue(int codePoint) method of Character class is static thus it should be accessed statically which means the we would be calling this method in this format:
Non static method is usually called by just declaring method_name(argument) however in this case since the method is static, it should be called by appending the class name as suffix. We will be encountering a compilation problem if we call the java getNumericValue() method non statically.