jamme-d / states_and_capitals Goto Github PK
View Code? Open in Web Editor NEWUsing a two-dimension array of states and capitals, develop two programs that sort the array in different ways. One program uses a bubble sort to sort the contents by capital. The other stores state/capital pairs using a HashMap function, then uses a TreeMap class to sort the map while using a binary search tree for storage.