?????????е?java???
???????????? ???????[ 2014/3/7 11:34:14 ] ????????java ?????
??????????????????????С?
package cn.zhf.list;
//???е?Link??LinkList???????е????
public class LinkQueue {
private LinkList list;
public LinkQueue(){
list = new LinkList();
}
public boolean isEmpty(){
return list.isEmpty();
}
public void insert(int id??double dd){
list.insertFirst(id?? dd);
}
public Link delete(){
return list.deleteFirst();
}
public void display(){
list.displayLink();
}
public static void main(String[] args) {
LinkQueue lq = new LinkQueue();
lq.insert(12?? 20.0);
lq.insert(13?? 20.1);
lq.insert(14?? 20.2);
lq.display();
System.out.println("-----------");
lq.delete();
lq.display();
}
}
???????н????
14??20.2
13??20.1
12??20.0
-----------
13??20.1
12??20.0
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11