I first converted a char
to an int
and then the int
to a binary string. Then I tried to convert this int
back to a char
but I got an error.
I tried this:
char myasciireturn = (char) intname;
And I got the following error:
Inconvertable types; cant cast 'java.lang.Integer' to 'char'
Here is my code:
Integer tester = Integer.valueOf("01000001", 2);
nextstep = Character.toString((char) tester);
Thanks for your help in advance,
Max