Java program to accept an array of numbers

Java program to accept an array of numbers

Output:

How many integers ?:
5
Enter 5 integers:
1 2 3 4 5
The array is:
a[0] = 1
a[1] = 2
a[2] = 3
a[3] = 4
a[4] = 5

Implementation: