Ask the user for an array size.Then receive this number of double values. Place
ID: 3631598 • Letter: A
Question
Ask the user for an array size.Then receive this number of double values. Place numbers within an array. Now randomly generate a number between 0 and 100. Indicate whether user’s inputs include this number, and its index if included. You should implement and use the following method in your program./*method findElement() check whether the number “target” exists in the array “numbers”. If so, return the index of “target”; otherwise return -1.*/
public static int findElement(double target, double[] numbers);