
1074 CHAPTER 14 An Introduction to Data Structures
Figure 14.19
Opening Window
To test your code, compile and run the LinkedListPractice.java file, which
contains the main method. When the program begins, a window will dis-
play the state of the linked list (the list is empty when we start), along with
various buttons labeled “insert,”“delete,”“traverse,”“count,” and “clear,” as
shown in Figure 14.19.
To insert or delete a value, type the integer into the text field labeled “Node
Data,” then click on the “insert” or “delete” button. The application only
accepts integers greater than or equal to 0 and less than or equal to 9999; it
will not let you enter ...