static void sortMatRowAndColWise ( Integer mat [ ] [ ] , int n ) {
  sortByRow ( mat , n , true ) ;
  transpose ( mat , n ) ;
  sortByRow ( mat , n , false ) ;
  transpose ( mat , n ) ;
}

static void sortMatRowAndColWise ( Integer mat [ ] [ ] , int n ) { sortByRow ( mat , n , true ) ; transpose ( mat , n ) ; sortByRow ( mat , n , false ) ; transpose ( mat , n ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (type_identifier) name: (identifier) dimensions: (dimensions)) (formal_parameter type: (integral_type) name: (identifier))) body: (block (expression_statement (method_invocation name: (identifier) arguments: (argument_list (identifier) (identifier) (true)))) (expression_statement (method_invocation name: (identifier) arguments: (argument_list (identifier) (identifier)))) (expression_statement (method_invocation name: (identifier) arguments: (argument_list (identifier) (identifier) (false)))) (expression_statement (method_invocation name: (identifier) arguments: (argument_list (identifier) (identifier))))))