Post date: Apr 11, 2016 7:26:58 AM
/!\ Quiz 2 on Tuesday
Chapter 14: Generics and the ArrayList Class
14.1 The ArrayList Class
Lab Exercise:
Ex 1:
Write a Java program that get 10 real numbers from the user using an ArrayList. Calculate and display the total and the average of these numbers, then ask the user to enter a number and display whether the number can be found in the ArrayList or not.
Ex 2:
Write a Java class named ArrayListSort that has 2 static methods selectionSort and bubbleSort that takes an ArrayList<String> as argument.