I need Java code. Please help me. Example: when I enter the number in ASCII
0 the output will be nul
1 for soh
2 for stx until it reaches the max number of ASCII.
Consider this code. It outputs an ASCII number. How can I reverse it?
String test = "ABCD";
for ( int i = 0; i < test.length(); ++i ) {
char c = test.charAt( i );
int j = (int) c;
System.out.println(j);
}
1 Answer