ZooMap.java



/** 動物園の動物の情報をウィンドウ上に表示 */

public class ZooMap {

  /** 処理の開始 */
    public static void main( String[] argv ) {

        Elephant ele[] = {
           new Elephant( "Hanako", 7 ),
           new Elephant( "Tarou", 8 ),
           new Elephant( "Gonta", 1 ),
           new Elephant( "Yone", 90 ) 
        };

        ElephantBoard eb[] = new ElephantBoard[ Elephant.number ];
        for( int i=0; i< Elephant.number; i++ ) {
             eb[i] = new ElephantBoard( ele[i] );
        }
    }
}