Title: Sun Certified Java Programmer 310-065-Lesson 29-Generics and Collections (TreeMap of Strings)-Part 9
Duration: 20 minutes
Summary: This video is a continuation of the previous one. Here we will create a generic TreeMap of Strings. We will see how to use lowerKey(), higherKey(), floorKey(), and ceilingKey(). We will also poll the first and last entries using pollFirstEntry() and pollLastEntry() and see their effects on the Map. We will then print the map in descending order using descendingMap(). Finally, we will create a sub-map. Then we add elements to the original map and to the sub and see the effect of the addition.
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(), TreeMap, String, put(), lowerKey(), higherKey(), floorKey(), ceilingKey(), pollFirstEntry, pollLastEntry(), descendingMap(), subMap().












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