Question: 1) Write a method that returns a copy of the integer array which is passed in. This method will take an array as a argument
1) Write a method that returns a copy of the integer array which is passed in. This method will take an array as a argument (parameter), and returns a Copy the this array. So there will be two physical arrays. 2) Are arrays built-in type or object? 3) What is the instance variable of an array? 4) What are the three uses of these brackets for an [] ? 5) Write a method takes as an argument an array (double base type) and calculate the average value of all the elements. This method returns the average value (double) 6) Using the Species class presented in chap 6 labs, create a Demo class with main, which will create an array of 5 elements of Species base type. Fill in up to 3 array elements with some Species, showing using the Species methods through the array (Setting and outputting values). pls answer as soon as possible and also answer 6 too.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
