I want to declare a HashMap
with another HashMap
as its value type. I have this code, and it doesn't work:
private HashMap<String, String> ContactData= new HashMap<String, String>();
private HashMap<String, String> Messages= new HashMap<String, String>();
private HahsMap<String, Messages> MessegesStructure= new HashMap<String, Messages>();
This is the Error I get in console:
Error:(10, 29) java: cannot find symbol
symbol: class Messages
location: class com.company.ContactClass
Error:(10, 78) java: cannot find symbol
symbol: class Messages
location: class com.company.ContactClass
Error:(10, 13) java: cannot find symbol
symbol: class HahsMap
location: class com.company.ContactClass
This code doesn't compile. How can I make it work?