Article:
  Making Java Objects Comparable
Subject:   Not anonymous classes :-)
Date:   2003-03-13 03:01:29
From:   anonymous2
Thanks for the article.
Just one pedantic point - in your final example you're using static inner classes not anonymous inner classes. They have names - FirstNameComparator and LastNameComparator!


Damian

Main Topics Oldest First

Showing messages 1 through 1 of 1.

  • Not anonymous classes :-)
    2003-03-14 05:49:40  fabiolourencetti [View]

    The article is right.

    FirstNameComparator and LastNameComparator are static attributes. Anonymous class is:

    new Comparator() {...}

    Fabio
    Brazil/Sao Paulo