public static int compare ( int num1 , int num2 ) {
  String A = Integer . toString ( num1 ) ;
  String B = Integer . toString ( num2 ) ;
  return ( A + B ) . compareTo ( B + A ) ;
}

public static int compare ( int num1 , int num2 ) { String A = Integer . toString ( num1 ) ; String B = Integer . toString ( num2 ) ; return ( A + B ) . compareTo ( B + A ) ; }
(method_declaration (modifiers) type: (integral_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (integral_type) name: (identifier)) (formal_parameter type: (integral_type) name: (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))))) (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))))) (return_statement (method_invocation object: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) name: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)))))))