I am looking for a way to get the Unicode value for a given char and, if possible, save it as an integer. Any built-in method for this in Java, or do I need to encode my own?
Context
I am creating a basic encryption program for fun. I need to map each character in a Unicode set to an integer, which I can then manipulate in my encryption formula.
I thought about using ASCII values ββfor char, specifying char as int, but then I read about Unicode on the Internet and realized my mistake.
Any help would be appreciated.
source share