An ArrayList for storing climber details. ArrayList provides overloaded remove() method, one accepts the index of the object to be removed i.e. What kind of data would be associated with each student Download the Lab9 BlueJ project. * Write a description of class ClubStats here. Consider a database of student records for the university. This class is found in java.util package.
Though, it may be slower than standard arrays but can be helpful in programs where lots of manipulation in the array is needed. It provides us with dynamic arrays in Java.
ARRAYLIST BLUEJ CODE
Whilst code solving the issue is appreciated, would be helpful if I was shown in the right direction so I can understand it more! ArrayList is a part of collection framework and is present in java.util package. The method of adding a climber needs to access both the Climber and Mountain class? Do I need to pass the fields from the Mountain class into Climber? How can I add a climber to the climber ArrayList, and be able to add which mountain they've climbed and its height at the same time? I've also created an ArrayList for the climbers and can add to this array. I've created the Climber class and the mountain class. I am trying to create a Club Database (arraylist, not actual database) where the user can add a new climber (name, age, gender) and which mountain they've climbed (name, height) to the arraylist.