public class State
extends java.lang.Object
Constructor and Description |
---|
State(java.lang.String name)
Creates a new State object and sets the value of name to the string that
was used as the parameter.
|
Modifier and Type | Method and Description |
---|---|
void |
display()
Displays the name of the State object.
|
java.lang.String |
getName()
Returns the name of the current State object
|