public class CircleTest

   {

   public static void main( String[] args )

      {

      Circle c1 = new Circle( 10 );

      Circle c2 = new Circle( 4 );

      

      System.out.println( "Area of circle 1 is: " + c1.getArea() );

      System.out.println( "Area of circle 2 is: " + c2.getArea() );


      System.out.println( "The value of compareTo() is: " + c1.compareTo(c2) );

      

      if( c1.compareTo( c2 ) < 0 ) // less than

         {    

         System.out.println( "The area of c1 is LESS than c2" );    

         } // end if

          

      if( c1.compareTo( c2 ) == 0 ) // equal to

         {

         System.out.println( "The area of c1 is EQUAL TO c2" );                 

         } // end if


      if( c1.compareTo( c2 ) > 0 ) // greater than

         {

         System.out.println( "The area of c1 is GREATER than c2" );                 

         } // end if

}

       

       

   } // end class CircleTest