1 / 6
Settings
<<
<
>
>>
Method
pop
is also quite simple.
Created with Raphaël 2.1.2
public Object pop() {
if (top == null) return null;
Object it = top.element();
top = top.next();
size--;
return it;
}
23
8
Created with Raphaël 2.1.2
12
15
top
it
Saving...
Server Error
Resubmit