Hi ,
I am trying to program a stack with an array, the interesting part of the
implementation looks like :
public class Stack<T> {
T[ ] field;
Stack(){
field=new T[10];
}
}
but I am getting a compiler error by creating the field (new T[10] ).
can some one help me please.