Skip to content

Instantly share code, notes, and snippets.

@Deathnerd
Created April 23, 2014 01:24
Show Gist options
  • Save Deathnerd/11199965 to your computer and use it in GitHub Desktop.
Save Deathnerd/11199965 to your computer and use it in GitHub Desktop.
void traverse() {
Helper hlp = new Helper(null, head);
final Term curr = hlp.current;
while (curr != null) {
System.out.print(curr.getKey() + " ");
hlp.moveNext();
}
System.out.println();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment