Write the Java source code necessary to build a solution for theproblem below:
Create a MyLinkedList class. Create methods in the class to add anitem to the head, tail, or middle of a linked list; remove an itemfrom the head, tail, or middle of a linked list; check the size ofthe list; and search for an element in the list.
Create a test class to use the newly created MyLinkedList class.Add the following names in to the list: James, John, Michael,Peter, Allison, Daniel, George, Simon, Jason, and Mark. Yourprogram should allow the user to enter a name from the console, andthen search to see if the name exists in the list.