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