Question
In this assignment, the goal is to exercise Linked List implementation in a GUI as a JavaFX Application. First you are going to implement a
In this assignment, the goal is to exercise Linked List implementation in a GUI as a JavaFX Application.
First you are going to implement a Generic linked-list. You can specify the type as "T extends Number". This class must have minimum following member methods: constructor, insertItem, printList, and clearList.
insertItem: insert data to the list in the ascending order
printList : prints the list starting from the head
clearList : Assigns all items in the list to null,
In the GUI, there will be 5 numbered buttons, which represent the data to be inserted into the list.
When a numbered button is clicked:
its data will be inserted into mList,
the numbered button will be disabled,
the information field will be updated using mList.printList()
When Reset button is clicked:
all numbered buttons will be enabled
mList will be cleared
The information field will be updated using mList.printList()
When Close button is clicked:
The application will be closed.
2 3 4 5 mHead -> Reset CloseStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started