Traverse linked list using enumeration

packagejavaRadarLinkedList; importjava.util.Collections; importjava.util.Enumeration; importjava.util.LinkedList; public classEnumerationTraversal {       public static void main(String[] args) {             //create Linked List             LinkedList<String> javaRadarList = newLinkedList<String>();             //Add elements to LinkedList             javaRadarList.add(“Java”);             javaRadarList.add(“Jquery”);             javaRadarList.add(“Spring”);             javaRadarList.add(“Hibernate”);             javaRadarList.add(“EJB”);             //creating

Traverse Linked list using iterator

packagejavaRadarLinkedList; importjava.util.Iterator; importjava.util.LinkedList; public class ItrTraversal {       public static void main(String[] args) {             //create Linked List             LinkedList<String> javaRadarList = newLinkedList<String>();             //Add elements to LinkedList             javaRadarList.add(“Java”);             javaRadarList.add(“Jquery”);             javaRadarList.add(“Spring”);             javaRadarList.add(“Hibernate”);             javaRadarList.add(“EJB”);             //creating

Remove element from linked list

packagejavaRadarLinkedList; importjava.util.LinkedList; public class RemoveAtIndex {       public static void main(String[] args) {             //create Array List             LinkedList<String> javaRadarList = newLinkedList<String>();             //Add elements to ArrayList             javaRadarList.add(“Java”);             javaRadarList.add(“Jquery”);             javaRadarList.add(“Spring”);             javaRadarList.add(“Hibernate”);             javaRadarList.add(“EJB”);                         System.out.println(“Before

Remove element from array list

packagejavaRadarArrayList; importjava.util.ArrayList; public class RemoveAtIndex {       public static void main(String[] args) {             //create Array List             ArrayList<String> javaRadarList = newArrayList<String>();             //Add elements to ArrayList             javaRadarList.add(“Java”);             javaRadarList.add(“Jquery”);             javaRadarList.add(“Spring”);             javaRadarList.add(“Hibernate”);             javaRadarList.add(“EJB”);                         System.out.println(“Before

Traverse ArrayList using Enumeration

packagejavaRadarArrayList; importjava.util.ArrayList; importjava.util.Collections; importjava.util.Enumeration; import java.util.ListIterator; public classEnumerationTraversal {       public static void main(String[] args) {             //create Array List             ArrayList<String> javaRadarList = newArrayList<String>();             //Add elements to ArrayList             javaRadarList.add(“Java”);             javaRadarList.add(“Jquery”);             javaRadarList.add(“Spring”);             javaRadarList.add(“Hibernate”);             javaRadarList.add(“EJB”);