I am looking for a way to retrieve the Unicode value for a given char, and if possible store it as an integer. Any inbuilt method for this in Java, or do I have to code my own?
Context
I am building a basic encryption program for fun. What I need is to map each character in the Unicode set to an integer, which I can then manipulate in my encryption formula.
I thought about using ASCII values for char by typecasting the char as an int, but then I read about Unicode online, and realised my mistake.
Any help will be appreciated.