??? 01/16/08 06:49 Read: times |
#149513 - java lang Responding to: ???'s previous message |
hi,
the numbers i send if printed directly are negative.i use the following code: byte[] readBuffer=new byte[20]; try { while(inputStream.available()>0) { int numBytes = inputStream.read(readBuffer); byte a=(byte)inputStream.read(); System.out.println(a); } } if i send data #065h from the 8051 the data that is printed is -65 if i send #066h the ans i get is -66 and so on; why is it so? regards |
Topic | Author | Date |
java language | 01/01/70 00:00 | |
Off Topic - the 8051 is irrelevant! | 01/01/70 00:00 | |
Actually, it's not even related to the serial port | 01/01/70 00:00 | |
hex conversion | 01/01/70 00:00 | |
java lang | 01/01/70 00:00 | |
echo problem? | 01/01/70 00:00 |