Skip to content

Instantly share code, notes, and snippets.

@amckinley
Created March 30, 2016 21:56
Show Gist options
  • Save amckinley/1315d78f500202fc96b356c995235b06 to your computer and use it in GitHub Desktop.
Save amckinley/1315d78f500202fc96b356c995235b06 to your computer and use it in GitHub Desktop.
// new style syntax
for (Map.Entry<K, V> current : this.internalList.get(index)) {
System.out.println(current);
}
// old school syntax
LinkedList<Map.Entry<K, V>> myList = this.internalList.get(index);
for (int i = 0; i < myList.size(); i++) {
Map.Entry<K, V> current = myList.get(i);
System.out.println(current);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment