Anonymous

Changes

From CMSC 420
4 bytes removed ,  19:17, 13 May 2007
Line 38: Line 38:  
                   <road end="city78" start="city29"/>
 
                   <road end="city78" start="city29"/>
   −
You correctly have the start as the asciibetically lower city name, but when you list them, you don't have them listed asciibetically.  A simple Collections.sort(<ArrayList> list, new CityNameComparator()) before listing the roads should do the trick.
+
You correctly have the start as the asciibetically lower city name, but when you list them, you don't have them listed asciibetically.  A simple Collections.sort(<ArrayList> list, new RoadComparator()) before listing the roads should do the trick.
 
~colin
 
~colin
 
PS.  Anyone else verify this?
 
PS.  Anyone else verify this?
31

edits