HashSet in Processing
in
Programming Questions
•
5 months ago
I need to quickly do lookups for previously stored Strings and wanted to use a HashSet. If I type:
- HashSet<String> example;
I get an error (cannot find a class or type named "HashSet"). If I instead type:
- HashMap<String, Integer> example;
It works just fine. I have no need to ever get one of the stored Strings so a HashSet would be better, what am I doing wrong?
1