O'Reilly logo

JAVA Programming by K. Rajkumar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required