download the application please visit www.mrbool.com/player
Title:Sun Certified Java Programmer 310-065-Lesson 24-Generics and Collections(Advanced functionality in the ArrayList)-Part 4
Duration: 16 minutes
Summary: In this video, we will discuss an advanced functionality in the ArrayList. We discussed sorting in the previous video. But how about sorting array of books? Do we sort by name, title, ISBN, price…? In order for us to give the array a hint on how to sort books, we implement the Comparable and Comparator interfaces. We will see why we need one interface instead of the other. For that, we add a Book class to the example. We create an ArrayList of books, and sort them in two different ways depending on which sort algorithm we are using.
Methodology of the development of example: Good coding standard and simplified design to prepare for the Java programmer certification exam CX-310-065.
Technology Used: Java - Core Concepts.
Keywords: Class, Object, toString(),printf, sort, Arrays, remove, indexof, size, ArrayList, clone, String. Comparable, compareTo, Comparator, compare, sort.












Post stats:
See the prices for this post in Mr.Bool Credits System below: