Skip to content

Instantly share code, notes, and snippets.

@tkshnwesper tkshnwesper/pop.java
Last active Jun 25, 2016

Embed
What would you like to do?
while(!list.isEmpty()) {
String el = list.pop();
System.out.println(el);
}
/*
Hello
world
my
name
is
saurabh
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.