Write the class header, Node class, and variables for a gene…
Write the class header, Node class, and variables for a generic Linked List class, (named LinkedList). The class will receive one type parameter, E. It should have a private inner class, a generic Node class. It will have the instance variables data (of type E, the type parameter) and next (which will point to an instance of the inner class). It will have a 2-arg constructor receiving them in that order and setting them. The variables and constructor will have private visibility. Getters and setters are not required nor allowed. It should have the instance variables head and size with private visibility. Getters and setters are not required nor allowed. Canvas Tip: Click on the dropdown that says “Paragraph” and switch to “Preformatted” to get a monospaced font – this can help in coding answers