Skip to main content

Practice · 2 of 5

Existence check

CHALLENGE
Difficulty: intermediate+25 XP

Implement boolean anyLonger(String[] words, int k): true when **at least one** word has length strictly greater than k, false otherwise (including the empty array). Return — do not print.

Back to lesson: Practice: Bootcamp drills