Re: What does "<<" mean in Java??
It's a bitwise left shift. In your example, you start out with a one, which can be represented in binary as: 00000000 00000001
then you tell the computer to shift the bits leftwards four times, yielding this binary number: 00000000 00010000
10000 in binary is 16 in decimal.
“Beware of bugs in the above code; I have only proved it correct, not tried it.” --Donald Knuth
"It was as if its architects were given a perfectly good hammer and gleefully replied, 'neat! With this hammer, we can build a tool that can pound in nails.'" -- Alex Papadimoulis (on TheDailyWTF.com)