You can take help from dictionary class in java.util package. You will find all needed classes and methods in this package. Hope this will help.