Question: (Sort ArrayList) Write the following method that sorts an ArrayList of numbers: public static void sort(Arraylist list) Write a test program that prompts the user
(Sort ArrayList) Write the following method that sorts an ArrayList of numbers: public static void sort(Arraylist list) Write a test program that prompts the user to enter 5 numbers, stores them in an array list, and displays them in increasing order. Question 2 : (Sum ArrayList) Write the following method that returns the sum of all numbers in an Arraylist: public static double sum(ArrayList 1ist) Write a test program that prompts the user to enter 5 numbers, stores them in an array list, and displays their sum
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
