Write a method selectrandom that expects an array of


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.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a method selectrandom that expects an array of
Reference No:- TGS02779541

Expected delivery within 24 Hours