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.