Thursday, April 28, 2005
Java 5.0 Generics :: own Class definition
Java Forums - cast problem: "public class SomeClass { private Map map = new HashMap(); public SomeClass(Set set) { for (Iterator i = set.iterator(); i.hasNext();) { map.put(i.next(), Boolean.FALSE); } } } Set extSet = new HashSet(); SomeClass someClass = new SomeClass(extSet); "
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment