Collections

  • 13
  • Niedostępny
Collections

13
Ankieta/quiz
Collections, poziom 13, lekcja 6
Niedostępny
Collections
Collections
Komentarze (3)
  • Popularne
  • Najnowsze
  • Najstarsze
Musisz się zalogować, aby dodać komentarz
Jimmy
Poziom 29 , Lausanne, Switzerland
29 maja, 07:31
8. What method should be used to remove an element from the middle of an ArrayList? ArrayList<String> list = new ArrayList<>(); list.add("Apple"); list.add("Banana"); list.add("Cherry"); list.add("Date"); // Remove the element at index 2 ("Cherry") list.remove(2); // Resulting list: ["Apple", "Banana", "Date"] System.out.println(list);
Harshit Garg
Poziom 23 , Chandigarh, India
Expert
3 listopada 2023, 18:24
What method should be used to remove an element from the middle of an ArrayList?
Kingpvz
Poziom 31 , Slovakia
30 listopada 2024, 08:58
neither of the answers they provided is correct