虫虫首页| 资源下载| 资源专辑| 精品软件
登录| 注册

LinkQuery

  • 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 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 }

    标签: private public Node LinkQuery

    上传时间: 2016-07-08

    上传用户:天诚24