public static char [ ] compare ( char [ ] ch1 , char [ ] ch2 ) {
  for ( int i = 0 ;
  i < ch1 . length ;
  i ++ ) {
    int val1 = ch1 [ i ] - '0' ;
    int val2 = ch2 [ i ] - '0' ;
    if ( val1 < val2 ) {
      return ch1 ;
    }
    if ( val2 < val1 ) {
      return ch2 ;
    }
  }
  return ch1 ;
}

public static char [ ] compare ( char [ ] ch1 , char [ ] ch2 ) { for ( int i = 0 ; i < ch1 . length ; i ++ ) { int val1 = ch1 [ i ] - '0' ; int val2 = ch2 [ i ] - '0' ; if ( val1 < val2 ) { return ch1 ; } if ( val2 < val1 ) { return ch2 ; } } return ch1 ; }
(method_declaration (modifiers) type: (array_type element: (integral_type) dimensions: (dimensions)) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (integral_type) dimensions: (dimensions)) name: (identifier)) (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: (field_access object: (identifier) field: (identifier))) update: (update_expression (identifier)) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (character_literal)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (character_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (block (return_statement (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (block (return_statement (identifier)))))) (return_statement (identifier))))