来源:互联网 发布:数据研发工程师笔试题 编辑:程序博客网 时间:2024/06/09 19:39

Stack<String>  stack  = new Stack<String>();

stack.push("a");

System.out.printlin(stack);

while(!stack.isEmpty()){

System.out.println(stack.pop());        ——>    stack的String类型

}


原创粉丝点击