reverse an array... just testing things out...
Download (right click, save as, rename as appropriate)
1 2 3 4 5 6 7 8
public static void reverse(int[] a) { for (int i = 0; i < a.length/2; i++) { int temp = a[i]; a[i] = a[a.length-i-1]; a[a.length-i-1] = temp; } }