The tutorial shows an example. The Bicycle interface defines several methods. The ACMEBicycle class impletments that interface and provides definitions for the methods defined in the Bicycle interface. Now an instance of the ACMEBicycle class can be treated as a Bicycle allowing any other code to call any of the Bicycle interface's methods.
For your case, the City class must implement the Comparable interface and provide definitions for the method(s) in Comparable. Then the sort method which requires objects of type Comparable will call the methods to sort a collection of City objects.
Read the API doc for the Collections class's sort method. It says:
All elements in the list must implement the Comparable interface.
A commonly used interface is ActionListener. Have you used that? Look at the code for that.
Also see an example in the tutorial:
https://docs.oracle.com/javase/tutor...nlistener.html