Skip to Main Content
Java
book

Java

by Michael Sikora
January 2003
Beginner to intermediate content levelBeginner to intermediate
150 pages
7h 28m
English
Morgan Kaufmann
Content preview from Java
1 54
Chapter 9: Collections m
and print this value. Note that although in this case the map has been ordered by descending
key order, the Hasl~ap class does not guarantee ordering. If order has to be guaranteed, we
must use the SortedMap interface as described in Section 9.3.1.
Apart from keySet, the other set view methods are values, which returns a collection of
values contained in the map, and entrySet, which returns a collection of key value mappings
contained in the map. In the preceding MapExample, the entrySet view would be
5=Able 4=Brown 3=Smith 2=Jones l=Smith
Details of all the Map interface methods and their implementations ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Java Programming

Java Programming

Poornachandra Sarang
JAVA Programming

JAVA Programming

K. Rajkumar
Java Programming

Java Programming

Hari Mohan Pandey
Java 9 for Programmers

Java 9 for Programmers

Paul J. Deitel, Harvey Deitel

Publisher Resources

ISBN: 9781558609099