public class Letter { private String label; // A unique label for this state // Constructor: you must specify a label for each letter. public Letter (String NewName) { setName(NewName); } // Change the label of the letter public void setName (String NewName) { label = NewName; } // Get the label for this state public final String getLabel() { return label; } // Dump this object's contents to stdout, in a LISP-style list, for debugging purposes public void displayMe() { System.out.print("(letter "+getLabel()+")");} };