Collections

  • 13
  • अनुपलब्ध
Collections

13
सर्वेक्षण/प्रश्नमंजुषा
Collections,पातळी 13, धडा 6
अनुपलब्ध
Collections
Collections
टिप्पण्या (3)
  • लोकप्रिय
  • नवीन
  • जुने
टिप्पणी करण्यासाठी तुम्ही साईन इन केलेले असणे आवश्यक आहे
Jimmy
पातळी 29 , Lausanne, Switzerland
29 May, 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
पातळी 23 , Chandigarh, India
Expert
3 November 2023, 18:24
What method should be used to remove an element from the middle of an ArrayList?
Kingpvz
पातळी 31 , Slovakia
30 November 2024, 08:58
neither of the answers they provided is correct