Chapter 9

Map Containers

OBJECTIVES
  • To introduce Map interface with an overview of its three implementation types
  • To create Hashtable and store key-value pairs to Hashtable
  • To add collections such as LinkedList and iterators to Hashtable
  • To solve word counting of a text problem
  • To check bracket pairs and brackets nesting in an expression
  • To introduce HashMap and explain its methods
  • To explain multimaps and nested HashMaps
  • To explain LinkedHashMap to store pairs of elements
  • To introduce TreeMaps and explain its natural ordering of its pairs
  • To solve random number generation problem
  • To explain how to create a property file
  • To populate Hashtable pairs from a file using Properties class
9.1 INTRODUCTION

In Chapter 8, the readers were introduced ...

Get JAVA Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.