public class Item { // Instance variables Item next; int i; String s; // Constructor public Item(int x, String msg) { i = x; s = msg; next = null; } // Other methods ... }