I have a map setup like this:
Map<Integer, Set<Long>> myMap = new HashMap<Integer, Set<Long>>();
I'm trying to add my very first value to myMap
like this:
myMap.put(1, myMap.get(1).add(myLong));
And java returns this:
The method put(Integer, Set<Long>) in the type Map<Integer, Set<Long>> is not applicable for the arguments (int, boolean)