長い数値があり、次の方法でビットを操作したい:
Long l = "11000000011" (long l 's bit representation)
Long ll1 = "110000000" (remove last two bits from l and convert to Long)
Long ll2 = "11" (keep last two bit's of l and discard other bits and convert to Long)
Javaでこれをすばやく行う方法を教えてください。