下面这断代码结果是什么?
Stack stack = new Stack();
stack.push("1");
stack.push("2");
stack.push("3");
stack.push("4");
stack.push("5");
stack.push("6");
System.out.println(stack.empty());
Stack clone = (Stack) stack.clone();
for (int i = 0; i < clone.size(); i++) {
System.out.println(clone.pop());
}
因提供了四个选项而违反了合区规定,所以修改此问题!
欢迎给出你的答案!