Create an applet that returns the country name and total population from a ranking list of the populations of countries when the ranking is entered, and displays the result on a message box.