Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
How to add a new element "A" to the listList<String> list = new ArrayList<>();
list.add("A");
list.set(0,"A");
list.set("A");
list.addAll(0, Arrays.asList("A"));
list.add(0, "A");
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!