📄 teststack.java
字号:
import java.util.*;
class TestStack
{ public static void main(String args[])
{ Stack mystack=new Stack(); mystack.push(new String("start"));
mystack.push(new String("one")); mystack.push(new String("two"));
mystack.push(new String("three")); mystack.push(new String("four"));
mystack.push(new String("five")); mystack.push(new String("end"));
while(!(mystack.empty()))
{ String temp=(String)mystack.pop();
System.out.print(" "+temp);
}
System.out.print("\n");
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -