1. Learn
  2. /
  3. Courses
  4. /
  5. Data Types and Exceptions in Java

Connected

Exercise

Using Collections and Arrays

In this exercise, you will see how the Collections Framework supporting classes of Collections and Arrays can help you manipulate and work with data more easily.

Instructions

100 XP
  • Add "Lima", "Bogota", "Santiago" to the capitals ArrayList.
  • Convert the array in the euCapitals variable to a List.
  • Sort capitals alphabetically.
  • Reverse the order of capitals