0
for(int i = 0;i<=33;i++){
        System.out.println(i+" "+(i<<i)+" "+Integer.toBinaryString(1<<i));
        //31 -2147483648 10000000000000000000000000000000
    }

When ibecome 31 it give me a negative number,if it's because out of bound , then what happened at that time? thanks a lot!

wylasr
  • 117
  • 9

0 Answers0