Post date: Jul 25, 2018 11:0:26 AM
Survey link: http://dpad-ucj.net/esurvey/index.php
Sorting and Searching
• Linear Search
• Binary Search
Online Tools:
Sorting and Searching
• Bubble sort
• Selection sort
Online tool:
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.