public class ArrayPracticeClient { public static void main (String[] args) { // declare a scanner to read from standard input int cnt = 0; // ask user for value of cnt until we get something between 1 and 25 // SOPf the value of cnt (Be informative! A number alone is not enough.) // declare and construct an array of integers // that can store exactly that many values, ie cnt // Loop #1: // read all the values, exactly cnt many of them, from the command line // and place them in the elements of your array // SOPf the FIRST element of your array (Be informative) // SOPf the LAST element of your array (Be informative) // Loop #2: // In a completely separate loop, SOPf all the elements of your array, // five per line System.out.printf("\nOriginal Array:\n"); // Loop #3: // In a completely separate loop, // find & SOPf the value of the minimum element in your array // Loop #4: // In a completely separate loop, // find & SOPf the value of the maximum element in your array // swap the contents of the first and last elements of your array // In a completely separate loop, SOPf all the elements of your array, // five per line. (yes, again) System.out.print("\nArray with first and last elements swapped:\n"); // Sorting Loop(s): // sort the contents the array your array // after you're done, the values in the array should be in order from // smallest to largest. // In a completely separate loop, SOPf all the elements of your array, // five per line. (yes, again) System.out.print("\nSorted Array:\n"); System.out.print("\n\n"); } }