[icq-devel] ICQ V5-- JAVA -- Strange connection problem

Daniel Strecker daniel-strecker at gmx.net
Fri Aug 31 00:57:00 CEST 2001

for you java freaks: use >>>, which will place 0s to the left,
instead of >>, which will assign the value of the former sign
bit to all the bits which become 'free'.

when casting from int to long, use:
long l                                 //this is a literal of type long.
analogous for smaller types:
int i    this sets in every case the higher bits to zero, which were
not used by the smaller type. otherwise, if the value of the
smaller type was negative, the higher bits would be set to 1 in
the bigger type:

short s int i int j 
hope this helps

More information about the icq-devel mailing list