Write a program SortCities, reading any number of cities with their corresponding postal numbers from a text file. You may assume that each line in the file contains one postal number (integer) and one city (string) and that they are separated by a semicolon ( ; ). Create a class City, representing a city. The class City should implement the interface Comparable.
After all cities of the file have been read, they should be printed in sorted order by postal number. An example of an execution:
Reading cities from file: C:\Temp\orter.dat
Number of cities found: 7
23642 Höllviken
35243 Växjö
51000 Jönköping
72211 Västerås
75242 Uppsala
90325 Umeå
96133 Boden
Thank u