Question: Apply the methods in the ListIterator interface to write a Java program in NetBeans that creates a LinkedList of four elements of type string,
Apply the methods in the ListIterator interface to write a Java program in NetBeans that creates a LinkedList of four elements of type string, namely: Java, C#, PHP and Python. The program should then print out the elements initially in the original order, and then afterwards in reverse order using the ListIterator methods. In this case, the following is the expected output: run: Original order of strings: Java C# PHP Python Reverse order of strings: Python PHP C# Java BUILD SUCCESSFUL (total time: 0 seconds) Figure 1 - Expected Output (10 Marks)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
