Check if a number is Bleak | Java program to demonstrate Integer . bitCount ( )
import java . util . * ; class GFG { public static void main ( String [ ] args ) { System . out . print ( Integer . bitCount ( 4 ) + "NEW_LINE"); System . out . print ( Integer . bitCount ( 15 ) ) ; } }