欢迎使用题易搜网站

题易搜

在线题库

[单选]  public class StackTest { public static void main(String[] args) { Stack st = new Stack(); st.push(new Integer(11)); st.push(new Integer(22)); st.push(new Integer(33)); System.out.println("size is-> "+st.size()); System.out.println("Top is-> "+st.peek()); st.pop(); System.out.println("new Top is-> "+st.peek()); } }

发布时间:2022-09-12 0次
您需要登录才可以下载或查看,没有账号?会员注册