How to get a symbol on his code?
There is a table ASCII . I have a value from the Oct
column. How to get a symbol for this meaning? I tried options but there was Dec
.
Answer 1, Authority 100%
Oct
is an octal number system (OCTAL). Use
int de = integer.parseint (Oct, 8);
To convert to 10-size (it will be the Dec
– Decimal column), and then use
char c = (char) DEC;
To obtain a symbol ASCII.
Full example:
string oct = "053";
int de = integer.paraseint (Oct, 8);
System.out.PrintLN ("in decimal ss will be" + DEC);
System.out.PrintLN ("ASCII Sign will" + (Char) DEC);
In the end, we get in response +
.