I want to use the Collections.newSetFromMap () method in JDK 1.5, which does not support it. In addition, the ConcurrentHashSet class is not supported in java 5. Must compile the following line in JDK 1.5. How am i doing this?
protected Set<String> knownLCWords = Collections.newSetFromMap(new ConcurrentHashMap<String, Boolean>());
I beg you, please.
user1847393
source share