template class list { private T k; private S d; private list t; list(T key, S data, list tail) { k = key; d = data; t = tail; } list tail() { return t; } T key() { return k; } S data() { return d; } } class test { int testFuntion() [] { list l = new list(1, "one", new list(2, "two", new list(3, "three", null))); /* list l = new list(1, "one", new list(2, "two", new list(3, "three", null))); */ return new int[3]; } static public single void main(String single [] single args) { System.out.println("Hello World!"); } }