Primitive and Object Arrays
Deitel 7
☑ In BunnyFarmer, add a method randomBun that returns a randomly chosen Bunny from the hutch. (hint: there may be empty spaces in the hutch, we should never be using those indices). If the hutch is empty, it should return null. Test this from main.
☑ Back in the class with main, write a method findHighIndex which takes an array of doubles and returns a single int which is the index where the highest value in the array is found. So if it were given {99, 22, 109, 3} it would return 2 since the highest value is at index 2. Test this from main.
[EC] Write a method findHighLowIndex which takes an array of ints and returns an array containing the indices of the highest and lowest values in the array. So if it were given {99, 22, 109, 3} it would return {2, 3} since the highest value is at index 2 and the lowest is at index 3.