首页 > > 详细

解析Java编程、Java调试、辅导Java设计、Java语言辅导留学生

/* SListNode.java */
/**
* SListNode is a class used internally by the SList class. An SList object
* is a singly-linked list, and an SListNode is a node of a singly-linked
* list. Each SListNode has two references: one to an object, and one to
* the next node in the list.
*
* @author Kathy Yelick and Jonathan Shewchuk
*/
class SListNode {
Object item;
SListNode next;
/**
* SListNode() (with one parameter) constructs a list node referencing the
* item "obj".
*/
SListNode(Object obj) {
item = obj;
next = null;
}
/**
* SListNode() (with two parameters) constructs a list node referencing the
* item "obj", whose next list node is to be "next".
*/
SListNode(Object obj, SListNode next) {
item = obj;
this.next = next;
}
}
 

联系我们
  • QQ:99515681
  • 邮箱:99515681@qq.com
  • 工作时间:8:00-21:00
  • 微信:codinghelp
热点标签

联系我们 - QQ: 99515681 微信:codinghelp
程序辅导网!