You are viewing a single comment's thread. Return to all 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
Seems like cookies are disabled on this browser, please enable them to open this website
Java Loops II
You are viewing a single comment's thread. Return to all 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