public static int smallestIndex ( ArrayList < Integer > a , int start ) {
  int min = Integer . MAX_VALUE ;
  for ( int i = start ;
  i < a . size ( ) ;
  i ++ ) {
    min = Math . min ( min , a . get ( i ) ) ;
  }
  return a . indexOf ( min ) ;
}

public static int smallestIndex ( ArrayList < Integer > a , int start ) { int min = Integer . MAX_VALUE ; for ( int i = start ; i < a . size ( ) ; i ++ ) { min = Math . min ( min , a . get ( i ) ) ; } return a . indexOf ( min ) ; }
(method_declaration (modifiers) type: (integral_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))) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (field_access object: (identifier) field: (identifier)))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (identifier))) condition: (binary_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list))) update: (update_expression (identifier)) body: (block (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier) (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))))))))) (return_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))))))