//: generics/TupleList.java // ©2015 MindView LLC: see Copyright.txt // Combining generic types to make complex generic types. import java.util.*; import net.mindview.util.*; public class TupleList extends ArrayList> { public static void main(String[] args) { TupleList tl = new TupleList<>(); tl.add(TupleTest.h()); tl.add(TupleTest.h()); for(FourTuple i: tl) System.out.println(i); } } /* Output: (75% Match) (Vehicle@11b86e7, Amphibian@35ce36, hi, 47) (Vehicle@757aef, Amphibian@d9f9c3, hi, 47) *///:~