thanks for contributing this example.
that should be:
on line 41
(it looks like the forum code alters it when I paste it in here.
here is the
string I'm trying to paste:
Comparable comp=new Comparable<ArrayList<String>>(){ //creates an anonymous class which implements a comparable interface
here is how it looks after submission
Comparable comp=new Comparable<ArrayList><String>>(){ //creates an anonymous class which implements a comparable interface