Question: 5 pts Write a method called minMax that returns an ArrayList (or ArrayintList) containing two ints: the minimum value in the list and the maximum

 5 pts Write a method called minMax that returns an ArrayList

5 pts Write a method called minMax that returns an ArrayList (or ArrayintList) containing two ints: the minimum value in the list and the maximum value in the list. You may assume the input will always be an ArraylListlor ArrayintList) of ints (and not an empty list) return that element repeated. e.g, [5. 51 A list with only one element, e.g. [5], will Note: You may write your method to use ArrayList or ArrayintList, but be consistent throughout -ie. the input and output types should match. Your new method will not be a method of the arrayList or Arrayintlist class, it will just USE the collection class HTML Editor Paragraph

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!