Skip to content

Instantly share code, notes, and snippets.

@dedeibel
Created July 21, 2011 13:37
Show Gist options
  • Save dedeibel/1097200 to your computer and use it in GitHub Desktop.
Save dedeibel/1097200 to your computer and use it in GitHub Desktop.
getting a typed array from a typed set
Set<MyInterface> set = new HashSet<MyInterface>();
MyInterface list[] = {};
MyInterface[] array = set.toArray(list);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment