Guest User

Untitled

a guest
May 26th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. public Object pop() { 
  2.  if (size == 0) throw new EmptyStackException(); 
  3.  Object result = elements[ - size];
  4.  elements[size] = null; 
  5.  return result;
  6. }
Add Comment
Please, Sign In to add comment