/* AUTHOR: Sandy Bartlett COURSE: SI 543 PROJECT: OO Programming DUE DATE: Feb. 11, 2002 SUBMISSION DATE: Feb. 11, 2002 LOCATION: EECS - ~bartlett/public_html/Plants SUMMARY This application prints information about a grass hut. INPUT none OUTPUT Lines of text on the screen that list the information about a grass hut. CLASS HIERARCHY Object - TreeData ASSUMPTIONS none */ class TreeData { public static void main(String [] args) { Tree maple = new Tree("maple", 50, 30, true); System.out.println("Here is information about a tree."); System.out.println("The tree is a " + maple.getName()); System.out.println("It is " + maple.getAge() + " years old."); System.out.println("It is " + maple.getHeight() + " " + Tree.HEIGHT_UNITS + " tall."); System.out.println("Is it deciduous? " + maple.isDeciduous()); System.out.println("It is " + (maple.isPoisonous() ? "" : "not") + " poisonous."); } // main } // TreeData