package DataStructures; class ListNode { E data; ListNode next; ListNode(E data, ListNode next) { this.data = data; this.next = next; } }