String author= "Joshua Jack"; int[] z= {6, 5 , 3 , 4 , 1 ,9 ,2 ,7}; int many= z.length; void setup() { size ( 500,400 ); } void draw() { background( 200,0,150 ); fill(120,0,0); textSize(17); int next=21; float x=45, y=45; for (int j=0; j a[w]) w=j; } swap( a, w, m-1 ); } void swap( int p[], int a, int b ) { //// exchange p[a] with p[b] int tmp= p[a]; p[a]= p[b]; p[b]= tmp; } void small( int a[], int m ) { // Move the smallest number to the beginning of the array // (Swap, to keep all numbers.) int w=0; for (int j=1; j1; k--) { highest( q, k ); } }