public static String solve ( String [ ] num , String password ) {
  String str = "" ;
  int count2 = 0 ;
  for ( int j = 0 ;
  j < 8 ;
  j ++ ) {
    String str2 = password . substring ( count2 , ( count2 + 10 ) ) ;
    for ( int i = 0 ;
    i < num . length ;
    i ++ ) {
      if ( str2 . equals ( num [ i ] ) ) {
        str = str + i ;
        count2 = count2 + 10 ;
        break ;
      }
    }
  }
  return str ;
}

public static String solve ( String [ ] num , String password ) { String str = " " ; int count2 = 0 ; for ( int j = 0 ; j < 8 ; j ++ ) { String str2 = password . substring ( count2 , ( count2 + 10 ) ) ; for ( int i = 0 ; i < num . length ; i ++ ) { if ( str2 . equals ( num [ i ] ) ) { str = str + i ; count2 = count2 + 10 ; break ; } } } return str ; }
(method_declaration (modifiers) type: (type_identifier) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (type_identifier) dimensions: (dimensions)) name: (identifier)) (formal_parameter type: (type_identifier) name: (identifier))) body: (block (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (string_literal))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (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 (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier) (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))))))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (field_access object: (identifier) field: (identifier))) update: (update_expression (identifier)) body: (block (if_statement condition: (parenthesized_expression (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (array_access array: (identifier) index: (identifier))))) consequence: (block (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (decimal_integer_literal)))) (break_statement))))))) (return_statement (identifier))))