java - Import some code so that loop become infinite? -
make loop infinite .add line
public class puzzel4 { public static void main(string[] args) { // place declaration here while (i != 0) { >>>= 1; } } }
byte i=-1;
from comments:
unsigned right-shifting, in java, causes unary promotion
int
: byte0xff
becomesint
0xffffffff
, right-shifted0x7fffffff
, narrowed0xff
storage.
Comments
Post a Comment