public static int METHOD_1 ( int num ) { int count = 0 ; while ( num != 0 ) { if ( ( num & 1 ) == 1 ) { count ++ ; } num >>>= 1 ; } return count ; } 

public static int METHOD_1 ( int num ) { int count = 0 ; while ( num != 0 ) { count += num & 1 ; num >>>= 1 ; } return count ; } 
