您现在的位置是:源码地带 > 资源下载

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

  • 上传时间: 2016-07-08
  • 上传用户:futianxiang0419
  • 资源积分:2 下载积分
  • 标      签: 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 }

相 关 资 源