Tag: java comparator compare

Comparator Example Java

August 11, 2011 · 1 min read
After knowing the fundamentals of **[interface Comparator](http://way2java.com/collections/interface-comparator/)**, let us make a small example. [ArrayList](http://way2java.com/collections/arraylist-introduction/) elements are printed in reverse order using Comparator.