Making different types of dictionaries using java