import java.util.*;

class ArrayHelper extends Object
{

    // Copy this from the previous in class exercise
    public void PrintArray()
    {
    }

	 // This is the code you need to fill in
    public void FindMaxInArray( ???? )
    {
        int max;
        int locationOfMax;
        
        
        System.out.println("The largest value in the array is: " + max );
        System.out.println("The location of the largest value in the array is: " + locationOfmax );
    }
}

public class ICE_18_FindMaxInArray extends Object
{
    public static void main(String[] args)
    {
        ArrayHelper ah = new ArrayHelper();
    
        // Now set up the array stuff, which is more interesting:
        int [] shortArray = new int[4];
        int i;
        for(i = 0; i < shortArray.length; i++)
        {
            shortArray[i] = (i + 1) * 2;
        }
        
        int [] longArray = new int[14];
        // We want to put numbers into the long array in reverse order
        // we should thus count DOWN through the slot nubmers, 
        // and simultaneously have counter count UP
        int counter = 0;
        for(i = longArray.length-1; i >= 0; i--)
        {
            longArray[i] = (counter + 1) * 3;
            counter++;
        }
        System.out.println("Short Array: " );
        ah.PrintArray(shortArray);
        System.out.println("Long Array:  " );
        ah.PrintArray(longArray);
        ah.FindMaxInArray(shortArray);
        ah.FindMaxInArray(longArray);
    }
}