I was thinking of creating a list with keys and values in java and decided to create something like
private static HashMap<String, Set<String>> battleTanks = new HashMap<String, Set<String>>();
then i was trying to add a few values there like battleTanks.put("keytest1", "valuetest1")
But it's giving me an error like
The method put(String, Set) in the type HashMap> is not applicable for the arguments (String, String)
so how can i add those values?