Discover the answers to your questions at Westonci.ca, where experts share their knowledge and insights with you. Get quick and reliable solutions to your questions from knowledgeable professionals on our comprehensive Q&A platform. Explore comprehensive solutions to your questions from a wide range of professionals on our user-friendly platform.

What will be the output of the following statements?
arraylist names = new arraylist();
names.add("annie");
names.add("bob");
names.add("charles");
for (int i = 0; i < 3; i++)
{
string extra = names.get(i);
names.add (extra);
}
system.out.print (names);