Java and Different Types of Stacks

Posted by Rarge on Stack Overflow See other posts from Stack Overflow or by Rarge
Published on 2010-06-15T17:25:37Z Indexed on 2010/06/15 17:32 UTC
Read the original article Hit count: 221

Filed under:
|

Currently the only stack I know anything about is Vector, I normally use this in place of an array but I understand that there is other types of stacks and they all suit different jobs.

The project I am currently working on requires me to be inserting objects in a certain position inside a stack, not always the front of the stack and I am under the impression that a Vector may not be the best class for this job.

Could somebody please give me a brief description of the other types of stacks available to me with the Java language and their advantages and disadvantages? Are these names homogeneous? E.g. Are they only used in the Java language or are they used as general terms in Computer Science?

Thank you

© Stack Overflow or respective owner

Related posts about java

Related posts about stacks