📄 stacktwo.java.bak
字号:
import java.util.*;
class StackOne
{public static void main(String args[])
{Stack mystack=new Stack();
mystack.push(new Integer(1)); mystack.push(new Integer(2));
mystack.push(new Integer(3)); mystack.push(new Integer(4));
mystack.push(new Integer(5)); mystack.push(new Integer(6));
while(!(mystack.empty()))
{Integer temp=(Integer)mystack.pop();
System.out.print(" "+temp.toString());
System.out.print(" ");}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -