📄 node.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 + -