This LinkedListUtil class tests various usages of the LinkedList class
param1 is an array of String, param2 and param3 are Strings. You will create
a linked list from param1. Then you are to add param2 as a
new first element and param3 as a new last element of the linked list.

Complete the following file:

LinkedListUtil.java

import java.util.LinkedList; import java.util.ListIterator; /** This LinkedListUtil class tests various usages of the LinkedList class param1 is an array of String, param2 and param3 are Strings. You will create a linked list from param1. Rhen you are to add param2 as a new first element and param3 as a new last element of the linked list. */ public class LinkedListUtil { public static LinkedList<String> check(String[] values, String s1, String s2) { LinkedList<String> list = new LinkedList<String>(); // TODO: create the LinkedList list to contain all Strings in values using a // "for each" loop processList(list, s1, s2); return list; } public static void processList(LinkedList<String> list, String s1, String s2) { // TODO: add s1 and s2 as the first and last elements of list, respectively } }