private Map<String, ArrayList> xlist = new HashMap<String, ArrayList>();
xlist.put(var1, new <Node>ArrayList(Attended));
How do I stop the unchecked error on this?
also on
xlist.put((String)var1, new <Node>ArrayList(Attended));
it is on the put.
ty
Re: private Map<String, ArrayList> xlist = new HashMap<String, ArrayList>();
If you want help with code, you should provide an SSCCE that we can copy and paste to see the errors you mentioned.
Until then, I'd recommend you read through this: Lesson: Generics (The Java™ Tutorials > Learning the Java Language)