Implement a method that adds an element to the beginning of a linked list and another at the end.

Complete the following file:

LinkedListUtil.java

import java.util.LinkedList; import java.util.ListIterator; public class LinkedListUtil { /** Adds an element to the front and another to the back of a linked list. @param list a linked list @param front the element to add to the front @param back the element to add to the back */ public static void processList(LinkedList<String> list, String front, String back) { // Your work here } // This method is used to check your work public static LinkedList<String> check(String[] values, String s1, String s2) { LinkedList<String> list = new LinkedList<String>(); for (String s : values) list.addLast(s); processList(list, s1, s2); return list; } }