2

I'm trying to walk through a Processing tutorial and hitting a wall. I can't even run the sample starter code --I get an error: Cannot find a class or type named "Set" and this line comes back highlighted:

Set<String> tags = le.getCustomElements().getTags();

Am I missing something already?

Gray
  • 7,050
  • 2
  • 29
  • 52
Amanda
  • 12,099
  • 17
  • 63
  • 91

1 Answers1

3

Some default imports has gone in 2.0. Try import java.util.* at the beginning of the code

v.k.
  • 2,826
  • 2
  • 20
  • 29
  • The code already imports a bunch of components from `java.util` -- `import java.util.HashMap;` `import java.util.List;` `import java.util.Map;` -- do you know what I have to import to recognize `Set`? * works, but I'd love to be more specific! – Amanda Apr 02 '13 at 23:49
  • 1
    `import java.util.Set;` But as far as i know set is an interface, so you will need to import the concrete Set you will use as well, like import `java.util.TreeSet;` – v.k. Apr 03 '13 at 04:53