Practice · 1 of 5
Linear search on Strings
CHALLENGE
Difficulty: beginner+25 XP
Implement int search(String[] arr, String target): the first index whose element equals target (use .equals!), or -1.
Press Submit to check your solution.
Back to lesson: Practice: Search & sort reps