You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Shiva Krishnan <sh...@gmail.com> on 2012/03/27 12:41:16 UTC
[Collections] Difference between Pop and remove methods
Hi
I am a newbie to this dev list. I was going through the ArrayStack.java
in Collections and couldn't understand the difference between remove and
pop methods. Can someone let me know about it ?
thanks
Shiva
Re: [Collections] Difference between Pop and remove methods
Posted by Detlef Günther <De...@gmx.net>.
Hi Shiva,
both seem to do the same: remove and return the top element of the stack. Since it is a stack the pop op should be the correct one.
Regards Detlef
-------- Original-Nachricht --------
> Datum: Tue, 27 Mar 2012 16:11:16 +0530
> Von: Shiva Krishnan <sh...@gmail.com>
> An: dev@commons.apache.org
> Betreff: [Collections] Difference between Pop and remove methods
> Hi
> I am a newbie to this dev list. I was going through the ArrayStack.java
> in Collections and couldn't understand the difference between remove and
> pop methods. Can someone let me know about it ?
>
> thanks
> Shiva
--
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org