This content has been marked as final. Show 3 replies
I have a "byte" ,no array nothing , just a byte. HowString.valueOf(theByte)
can i convert it to char or string
os similar methods from the respective wrapper classes.
so that the timebytes are not characters. chars have two bytes. Hence out will print a number.
when i use it in system.out.println it should give
the character that have been sent and not the ascii .
byte theByte = 41; char ch = (char)theByte;
Thanks Kaj . Ur method worked .