static void calCan ( HashSet < Integer > boyCan , int m , int Q ) {
  for ( int i = 1 ;
  i <= ( 1 << m ) - 1 ;
  i ++ ) {
    if ( numOfOne ( i ) == Q ) boyCan . add ( i ) ;
  }
}

static void calCan ( HashSet < Integer > boyCan , int m , int Q ) { for ( int i = 1 ; i <= ( 1 << m ) - 1 ; i ++ ) { if ( numOfOne ( i ) == Q ) boyCan . add ( i ) ; } }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (generic_type (type_identifier) (type_arguments (type_identifier))) name: (identifier)) (formal_parameter type: (integral_type) name: (identifier)) (formal_parameter type: (integral_type) name: (identifier))) body: (block (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (decimal_integer_literal) right: (identifier))) right: (decimal_integer_literal))) update: (update_expression (identifier)) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (method_invocation name: (identifier) arguments: (argument_list (identifier))) right: (identifier))) consequence: (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier)))))))))