View Single Post
Old 03-20-2005, 03:54 PM   #6 (permalink)
Belisarius
Java fanboy
 
Belisarius's Avatar
 
Join Date: Aug 2003
Posts: 1,139
Belisarius is on a distinguished road
Arg, C style Java . . .

Anyways, stylistic comments aside, you're using "&" in your while loop. This doesn't do what you think it does. You want "&&", which is a boolean AND. "&" is a binary AND.
__________________
GitS
Belisarius is offline   Reply With Quote