// Hunter Schafer, CSE 143 // This class represents a list of integers public class LinkedIntList { private ListNode front; // Adds the given number to the end of this list public void add(int value) { ListNode curr = front; while (curr != null) { curr = curr.next; } curr = new ListNode(value); } private static class ListNode { public int data; public ListNode next; public ListNode(int data) { this(data, null); } public ListNode(int data, ListNode next) { this.data = data; this.next = next; } } }