Java Loops II

  • + 0 comments

    << is the bitwise left shift operator.

    1 << h takes the bits in 1 and shifts them with h positions to the left.

    1 << 0 == 1 1 << 1 == 2 1 << 2 == 4