Code: Select all
public class Arrays {
public static void main(String args[]) {
//Assigning the array length according to the user's input
int N = Integer.parseInt(args[0]);
int randoms[] = new int[N];
//Filling the array with random integer values
System.out.println("The numbers generated are: ");
for (int i=0; i