download the application please visit www.mrbool.com/player
Java Programmer 310-065-Lesson 28-Generics
and Collections(TreeSet but
for generic types)-Part 8
Duration: 17 minutes
Summary: In this video, we will discuss TreeSet but for generic types (we will
use specific types like Integer, instead of Object). After adding some elements
into the set, we will experiment with new sets of methods. We will see how
lower() and higher() work, and how they are different from floor() and
ceiling(). Also, we will see how to use pollFirst() and pollLast(). Finally, we
will use descendingSet() to see how we can print the list of elements in
Methodology of the development of example: Good coding standard and simplified design to
prepare for the Java programmer certification exam CX-310-065.
Java - Core Concepts
Keywords: Class, Object, toString(), TreeSet, add, Integer, lower(), higher(),
floor(), ceiling(), pollFirst(), pollLast().