• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Hash Map

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
could any body tell me how to create a Hash Map in java.I just want to use it inorder to reduce the Ifs in my program.
 
Ranch Hand
Posts: 1704
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by mythily prakash:
could any body tell me how to create a Hash Map in java.I just want to use it inorder to reduce the Ifs in my program.



I guess this question should go Java in General (beginner)

To answer your query what is your requirement?

You can crate HashMap using its default or other constructors. For ex:
HashMap hashMap = new HashMap() and then put values using put() method.
reply
    Bookmark Topic Watch Topic
  • New Topic