The conversation between human and AI assistant.
What is ArrayList?
How do we add elements to an ArrayList?
To add elements to an ArrayList, we use the add() method followed by the element we want to add. For example, arrayList.add("apple") would add the string "apple" to the end of the ArrayList.