Skip to main content

Practice · 2 of 5

Value removal with report

CHALLENGE
Difficulty: intermediate+25 XP

Implement boolean removeFirst(ArrayList<String> list, String value): remove the FIRST element equal (by content) to value; return whether anything was removed. Missing value → false, list untouched.

Back to lesson: Practice: ArrayList lab