Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

swap function java

public static void swap(int[] a, int i, int j){
	int temp = a[i];
  	a[i] = a[j];
  	a[j] = temp;
}
 
PREVIOUS NEXT
Tagged: #swap #function #java
ADD COMMENT
Topic
Name
8+5 =