byte i=-1;
From comments:
Unsigned right-shifting, in Java, causes unary promotion to
int: the
byte0xffbecomes theint0xffffffff, which is then right-shifted to
0x7fffffffand narrowed to0xfffor storage.
3
solved Import some code so that loop become infinite? [closed]