Hi,
> Hi!
>
> How to use new feature (parameterized abstract data type) in JAVA 5.0
> to write a stack?
>
> Ming
import java.util.Stack;
...
Stack<String> s=new Stack<String>();
s.push("Test");
String string=s.pop();
...or what exactly is your question?
Ciao,
Ingo
leo@tech-trans.com - 29 Jun 2005 14:57 GMT
I want a generic buffer in Java which operates as stack can able to
store at most 10 items of the same type (e.g. string). Thx!
Ming