public static boolean almostRight ( int [ ] points ) {
  for ( int i = 0 ;
  i < 6 ;
  i ++ ) {
    points [ i ] -- ;
    if ( right ( points ) ) return true ;
    points [ i ] ++ ;
    points [ i ] ++ ;
    if ( right ( points ) ) return true ;
    points [ i ] -- ;
  }
  return false ;
}

public static boolean almostRight ( int [ ] points ) { for ( int i = 0 ; i < 6 ; i ++ ) { points [ i ] -- ; if ( right ( points ) ) return true ; points [ i ] ++ ; points [ i ] ++ ; if ( right ( points ) ) return true ; points [ i ] -- ; } return false ; }
(method_declaration (modifiers) type: (boolean_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 (expression_statement (update_expression (array_access array: (identifier) index: (identifier)))) (if_statement condition: (parenthesized_expression (method_invocation name: (identifier) arguments: (argument_list (identifier)))) consequence: (return_statement (true))) (expression_statement (update_expression (array_access array: (identifier) index: (identifier)))) (expression_statement (update_expression (array_access array: (identifier) index: (identifier)))) (if_statement condition: (parenthesized_expression (method_invocation name: (identifier) arguments: (argument_list (identifier)))) consequence: (return_statement (true))) (expression_statement (update_expression (array_access array: (identifier) index: (identifier)))))) (return_statement (false))))