Class CharacterNode
java.lang.Object
LLNode
CharacterNode
public class CharacterNode
- extends LLNode
Method Summary |
void |
drawWith(Turtle turtle)
|
LLNode |
last()
Don't try to get the last() from a circular list! |
void |
remove(LLNode node)
Don't try to remove() from a circular list! |
String |
toString()
Method to return a string with informaiton
about this node |
CharacterNode
public CharacterNode(Picture pict)
remove
public void remove(LLNode node)
- Don't try to remove() from a circular list!
- Overrides:
remove
in class LLNode
- Parameters:
node
- the element to remove from the list.
last
public LLNode last()
- Don't try to get the last() from a circular list!
- Overrides:
last
in class LLNode
- Returns:
- the current node
toString
public String toString()
- Method to return a string with informaiton
about this node
- Overrides:
toString
in class Object
drawWith
public void drawWith(Turtle turtle)