首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > package query public class LinkQuery { private Node front private Node vear public Link

package query public class LinkQuery { private Node front private Node vear public Link

  • 资源大小:6 K
  • 上传时间:2023-06-22
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: private public Node LinkQuery

资 源 简 介

package query public class LinkQuery { private Node front private Node vear public LinkQuery() { this.front=null this.vear=null } public void add(int i) { Node newNode=new Node(i) if(vear==null && front==null) { vear=newNode front=newNode return } vear.next=newNode vear=newNode } public int remove() { if(this.front==null) { System.out.println("队是空的,无法取") return -1 } int temp=this.front.data this.front=this.front.next if(this.front==null) { this.vear=null }

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
0.178615s