To find out how many items there are, use the size() method:
size()
capitalCities.size();
Practice Excercise Practice now
Copyright © RVR Innovations LLP 2025 | All rights reserved - Mytat.co is the venture of RVR Innovations LLP