import java.util.ArrayList;
public class MyStack<T> {
private ArrayList<T> stack;
// Copy constructor
public MyStack(MyStack<T> s) {
// i know its wrong
for(int i = 0; i < stack.size(); i++) {
this.stack.get(i) = s.stack.get(i);
}
}
}
问问题
285 次