1Z0-829 • Practice Test 31
Free 1Z0-829 practice test — 15 questions with explanations. Set 31. No signup required.
A method uses an enhanced for loop to iterate over a list of strings and prints each string. The code is:
```java List<String> list = List.of("A", "B", "C");
for (String s : list) {
if (s.equals("B")) {break;
}System.out.print(s);
}```
What is the result?