import java.util.*; public class SmallestInFront2 { public static void main (String[] argv) { int[] testData = makeRandomArray (10); System.out.println ("Before: " + Arrays.toString(testData)); smallestTwoInFront (testData); System.out.println ("After: " + Arrays.toString(testData)); } static void smallestTwoInFront (int[] A) { // First, the smallest in front. int smallest = A[0]; int pos = 0; // Check against A[1], A[2] ... etc. for (int i=1; i