Skip to content

Instantly share code, notes, and snippets.

@AlfredoCasado
Created November 29, 2010 13:39
Show Gist options
  • Save AlfredoCasado/719952 to your computer and use it in GitHub Desktop.
Save AlfredoCasado/719952 to your computer and use it in GitHub Desktop.
Set<String> cesta = new HashSet();
cesta.add("manzana");
cesta.add("platano");
cesta.add("fresa");
assertTrue(cesta.contains("manzana") || cesta.contains("pera"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment