// class for representing a single node of of linked list of integers // fields are public because this class will be exclusively used as // a private field of another class and will not be exposed to the // client public class ListNode { public int data; public ListNode next; }