RosettaCodeData/Task/Bitwise-operations/Java/bitwise-operations-2.java

5 lines
56 B
Java

a <<= 3;
a = a << 3;
a *= 8; //2 * 2 * 2 = 8
a = a * 8;