Problem
List the errors in the following array declarations.
A. int intArray[] = new double[10];
B. int intArray[] = new int[1.5];
C. double[] doubleArray = new double[-10]
D. int intMatrix[] [] = new int[10];
- Write a method selectRandom that expects an array of integers as a parameter. The method should return the value of an array element at a randomly selected position.