Bit operations

  • 18
  • Locked
You must implement a public int resetLowerBits(int number) method. It should clear all the bits in the number argument, except the highest bit set to one, and then return this number. An int is 4 bytes = 32 bits.
You can't complete this task, because you're not signed in.
  • Popular
  • New
  • Old
You must be signed in to leave a comment
This page doesn't have any comments yet