Find the number of '0' bits in an integer.
Anonymous
If you can use in built libraries, you use this function public int zerobits(int num) { return Integer.toBinaryString(num).length()-Integer.bitCount(num); }
Check out your Company Bowl for anonymous work chats.