Find the smallest element

The problem

Write a method that finds the smallest element in an array of double values using the following header: public static double min(double[] array). Write a test program that prompts the user to enter ten numbers, invokes this method to return the minimum value in double array, and displays the minimum value.

Breaking it down

static final int USER_INPUT_NUMBERS = 10;

public static void main(String[] args) {

    double[] numbers = new double[USER_INPUT_NUMBERS];
    Scanner input = new Scanner(System.in);

    System.out.print("Enter " + USER_INPUT_NUMBERS + " numbers: ");
    for (int i = 0; i < numbers.length; i++) {
        numbers[i] = input.nextDouble();
    }

    input.close();

    System.out.println("The minimum number is: "
            + Arrays.stream(numbers).min().getAsDouble());
}

Output

Enter 10 numbers: 3
2
4
5
6
99
55
44
33
2
The minimum number is: 2.0