public static void main( String [ ] args){
    // class adapter
    System.out.println("class adapter test");
    TemperatureInfo tempInfo = new TemperatureClassReporter() ;
    testTempInfo( tempInfo);
    // object adapter
    System.out.println("\nobject adapter test");
    tempInfo = new TemperatureObjectReporter();
    testTempInfo( tempInfo);
    }