Skip to content

Instantly share code, notes, and snippets.

@lovubuntu
Created December 7, 2015 11:16
Show Gist options
  • Save lovubuntu/d7730098ac01fc714e0c to your computer and use it in GitHub Desktop.
Save lovubuntu/d7730098ac01fc714e0c to your computer and use it in GitHub Desktop.
to get the first value of ` set<E> someSet;` its better to use `someSet.iterator.next()` than converting it to arraylist or array and then getting the first element
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment