public static int check ( int [ ] players ) {
  for ( int i = 0 ;
  i < 3 ;
  i ++ ) {
    if ( winAll ( players [ i ] , players ) ) {
      return i ;
    }
  }
  return 3 ;
}

public static int check ( int [ ] players ) { for ( int i = 0 ; i < 3 ; i ++ ) { if ( winAll ( players [ i ] , players ) ) { return i ; } } return 3 ; }
(method_declaration (modifiers) type: (integral_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (integral_type) dimensions: (dimensions)) 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: (decimal_integer_literal)) update: (update_expression (identifier)) body: (block (if_statement condition: (parenthesized_expression (method_invocation name: (identifier) arguments: (argument_list (array_access array: (identifier) index: (identifier)) (identifier)))) consequence: (block (return_statement (identifier)))))) (return_statement (decimal_integer_literal))))