⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 node.java

📁 LINKED LIST OF JAVA, use abstrct classes, hope some data structure can been learn better
💻 JAVA
字号:


public class Node extends ADTNode
{

	public Node()

	{
		this(null, null);
	}

	public Node(Object o, ADTNode n)
	{
			data = o;
			next = n;
	}

	/* Get the element of the node */
	public Object getElement()
	{
		return data;
	}

	/* Get the next node of the node */
	public ADTNode getNext()
	{
		return next;
	}

	/* Set the element of the node */
	public void setElement(Object newElement)
	{
			data = newElement;
	}

	/* Set the next node of the node */
	public void setNextNode(ADTNode nextNode)
	{
			next = nextNode;
	}

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -