πŸ“Š JAVA
Q. How do you find the index of an element in an ArrayList named list in Java?
  • (A) list.getIndex(element);
  • (B) list.indexOf(element);
  • (C) list.find(element);
  • (D) list.search(element);
πŸ’¬ Discuss
βœ… Correct Answer: (B) list.indexOf(element);

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
115
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Vikash Gupta
Publisher
πŸ“ˆ
90%
Success Rate