char c = '3';
System.out.println(c);
System.out.println((int)c);
The problem that I'm having is getting the input of the char and turning it to unicode.
Any advice would be helpful.
char c = '3';
System.out.println(c);
System.out.println((int)c);
The problem that I'm having is getting the input of the char and turning it to unicode.
Any advice would be helpful.
You can use, for instance, Character.toCodePoint().
For code points inside the BMP (Basic Multilingual Plane; code points from U+0000 to U+FFFF), the first argument to this method will always be 0. Note that the reverse operation is Character.toChars().
I dont't understand what you want on the output, unicode code of symbol or something else? And also in Java all symbols are in Unicode : Refer
you can use Character.hashCode(char value).