Skip to main content
✏️ Code CompletionJV Java Medium+20 XP

Enhanced For Loop

Complete the enhanced for loop.

✏️ Fill in the blank
List<String> names = Arrays.asList("Alice", "Bob");
___ (String name : names) {
    System.out.println(name);
}

✏️ Type the missing code: