我有一个很长的数字,我想通过以下方式操作它:
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 中快速做到这一点?