Skip to content

Instantly share code, notes, and snippets.

@ahirschberg
Created December 16, 2014 19:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahirschberg/98df1077040a5da56ac7 to your computer and use it in GitHub Desktop.
Save ahirschberg/98df1077040a5da56ac7 to your computer and use it in GitHub Desktop.
EIMACS Queue Solution
public class ListQueue extends LinkedList<Object>
{
public boolean isEmpty() { return size() == 0; }
public boolean add( Object x )
{
addLast( x );
return true;
}
public Object remove() { return removeFirst(); }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment