📄 listqueue.java
字号:
package com.he.java;
import java.io.*;
import com.he.java.*;
public class ListQueue
{
public LinkList theQueue;
public ListQueue()
{
this.theQueue = new LinkList();
}
public int getLength()
{
return theQueue.getLength();
}
public boolean isEmpty()
{
if (theQueue.getLength() == 0)
return true;
else
return false;
}
public void InQueue(Object x)
{
int i = theQueue.getLength();
ListNode n = new ListNode(x,null);
theQueue.Insert(i,n);
}
public void OutQueue()
{
theQueue.Delete(1);
}
public Object First()
{
return theQueue.Header.next.element;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -