?? testlinqueue.java
字號:
public class TestLinQueue
{
public static void main(String[] args)
{
int n=10;
LinQueue myQueue = new LinQueue(n);
try
{
for(int i = 0; i < (n+10); i ++)
{
myQueue.append(new Integer(i+1));
System.out.println("入隊數據:"+(i+1));
}
System.out.println("出隊數據:-------------");
while(myQueue.notEmpty())
{
System.out.print(myQueue.delete()+"\t");
}
}
catch (Exception e)
{
System.out.print(e.getMessage());
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -