Answer:
Step 1: Create an ArrayList of five countries by creating Country objects and adding them to the ArrayList.
Step 2: Print out your ArrayList by looping through it and printing out each Country object's toString() method.
Step 3: Remove one of the countries from the ArrayList by using the remove() method and passing in the index of the object you wish to remove.
Step 4: Print out your ArrayList again by looping through it and printing out each Country object's toString() method.
Step 5: Create a new country and insert it in the middle of your ArrayList by creating a Country object and using the add() method with the index of the position in the ArrayList.
Step 6: Print out your ArrayList again by looping through it and printing out each Country object's toString() method.
Step 7: Change your last country to the country you removed in Step 3 by first removing the last country from the ArrayList, creating a new Country object using the same parameters as the one you removed earlier, then using the add() method with the index of the last position in the ArrayList.
Step 8: Print out your ArrayList again by looping through it and printing out each Country object's toString() method.