Welcome to Double Linked List

Javafx: This program uses a double linked list class to add, remove, sort, and reverse nodes. The main GUI program will check to make sure the correct data type has been entered before proceeding forward. Anything that is not correct will be displayed in an error message.


Using this GUI is as follows:

1. Either type in an index and string to add, or leave Index blank and just type in a String. Clicking on the Add button will add the item to the double linked list. Repeat as many times as you would like.

2. Enter in a Index to remove. Click on remove to remove a item from the double linked list. You can also type in a String to remove if it exists in the double linked list. The item that was removed will be displayed.

3. Clicking on the Size button will display how many items are in the double linked list.

4. Clicking on the Sort button will sort the double linked list in ascending order then display it.

5. Clicking on the Reverse button will reverse the double linked list then display it.

6. Clicking on the Is Empty button will display if the double linked list is empty or not.

Errors:

1. A String must be typed in the String textfield to be added.

2. Only a integer must be typed in the Index textfield.

3. The integer typed in the add textfield must not be greater than the size of the double linked list.

4. If a value typed in the String textfield to remove does not exist in the double linked list, then a error message will be displayed.

5. The integer typed in the remove textfield must not be greater than the size of the double linked list.

6. If the Index AND String textfield are empty but the Remove button is clicked, a error message will be displayed.

7. If a value is typed in the Index AND String textfield to be removed, by clicking on the Remove button will display a error message. Please choose either a Index or String to remove, not both at the same time.

8. If the double linked list is empty and the Sort button is pressed, a error message will be displayed. Please add items to the double linked list before sorting.