Finding random index
<p>I'm new to Java, I have created an array of 15 random integers and I have found the minimum and maximum value. I now need to concatenate the index of the maximum and minimum value. </p>

<pre><code>package homework7;

import java.util.Arrays;
import java.util.Random;

/**
 *
 * @author a
 */
public class Homework7 {

    public static void main(String[] args) {
        // Name and Homework Number 
        System.out.println("A" + " \nHomework 7");

        int[] numbers = new int[15];
        //Generates 15 Random Numbers in the range 1 - 1000
        for (int i = 0; i &lt; numbers.length; i++) {
            numbers[i] = (int) (Math.random() * 1000 - 1);
        }//end for loop
        System.out.println("\nContents of the Array:\n" + Arrays.toString(numbers));

        // Calling getMax() method for getting max value
        int max = getMax(numbers);
        System.out.println("\nMaximum Value " + max + " is located at index ");

        // Calling getMin() method for getting min value
        int min = getMin(numbers);
        System.out.println("Minimum Value " + min + " is located at index ");

    }

    // Method for getting the maximum value
    public static int getMax(int[] inputArray) {
        int maxValue = inputArray[0];
        for (int i = 1; i &lt; inputArray.length; i++) {
            if (inputArray[i] &gt; maxValue) {
                maxValue = inputArray[i];
            }
        }
        return maxValue;
    }

    // Method for getting the minimum value
    public static int getMin(int[] inputArray) {
        int minValue = inputArray[0];
        for (int i = 1; i &lt; inputArray.length; i++) {
            if (inputArray[i] &lt; minValue) {
                minValue = inputArray[i];
            }
        }
        return minValue;

    }
}
</code></pre>