Given the following SinglyLinkedList and testSinglyLinkedListV2classes
Write a java method named compareList that compares two integerlinked lists entered by the user. The method returns true if thetwo linked list are identical, otherwise it returns false.
Test the method by creating two linked list and call the method tocheck whether they are identical or not. If they are identicaldisplay “Identical”, otherwise display “Not Identical”
the subject is data structure and i need the code in java and thereare two classes one for writiing method and the othe isImplementation for testing
class SinglyLinkedList {
/* Class Node */
class Node {
private int element; // reference to the
PayPal Gateway not configured
PayPal Gateway not configured