Thread
:
Java tips and tricks
View Single Post
08-05-2003, 04:28 PM
#
15
(
permalink
)
npa
Code Monkey
Join Date: Jul 2003
Location: canada
Posts: 82
"i keep getting negative byte values like -45 etc, why
aren't they positive.. help!":
Code:
// java bytes are signed, to unsign them: byte b = -34; int unsigned_b = b & 0xff;
__________________
direct entry file specification.
npa
View Public Profile
Find More Posts by npa