Main { (@ static public void main(String args[]) throws Exception { BusRoute e = BusRoute.parse(System.in); e.show_tree(); System.out.println(); System.out.println(" DONE DISPLAY "); e.print_tree(); System.out.println(); System.out.println(" DONE PRINT "); System.out.println(" DONE "); } @) } // class BusRoute { void show_tree() to * (DisplayVisitor); // defines an adaptive method called show_tree by traversing // everywhere ( to *) using the DisplayVisitor // The DisplayVisitor is automatically generated from program.cd void print_tree() to * (PrintVisitor); // similar }