Question: IN JAVA CP1 1) Create an array of 100 ints with random #s from O up to 100 2) Create a method public static int
IN JAVA
CP1 1) Create an array of 100 ints with random #s from O up to 100 2) Create a method public static int theRange(int[] n) //where n is the passed array created in main method //theRange calculates the Range of all the values in passed array // Range is biggest value - smallest value //return range 3) Create another method public static int findAll(int[] n, int key) //performs a linear search in array n, totalling how many of key is found //return total of amount of keys found
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
