mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-11 20:07:01 +07:00
22 lines
439 B
Java
22 lines
439 B
Java
// "Replace with anyMatch()" "true"
|
|
|
|
import java.util.List;
|
|
|
|
public class Main {
|
|
public void testAssignment(List<String> data) {
|
|
boolean found = false;
|
|
try {
|
|
for (String str : da<caret>ta) {
|
|
String trimmed = str.trim();
|
|
if (!trimmed.isEmpty()) {
|
|
found = true;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
catch(Exception ex) {
|
|
ex.printStackTrace();
|
|
}
|
|
System.out.println(found);
|
|
}
|
|
} |