public static void replace ( int a ) {
  a %= 5 ;
  int tmp = num [ a ] ;
  num [ a ] = num [ a + 1 ] ;
  num [ a + 1 ] = tmp ;
}

public static void replace ( int a ) { a %= 5 ; int tmp = num [ a ] ; num [ a ] = num [ a + 1 ] ; num [ a + 1 ] = tmp ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (integral_type) name: (identifier))) body: (block (expression_statement (assignment_expression left: (identifier) right: (decimal_integer_literal))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (array_access array: (identifier) index: (identifier)))) (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (array_access array: (identifier) index: (binary_expression left: (identifier) right: (decimal_integer_literal))))) (expression_statement (assignment_expression left: (array_access array: (identifier) index: (binary_expression left: (identifier) right: (decimal_integer_literal))) right: (identifier)))))