mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 18:58:31 +07:00
18 lines
347 B
Java
18 lines
347 B
Java
// "Replace with anyMatch()" "false"
|
|
|
|
import java.util.List;
|
|
|
|
public class Main {
|
|
public void process(List<String> strings) {
|
|
String item = "FOO";
|
|
for(String str : st<caret>rings) {
|
|
String trimmed = str.trim();
|
|
if(trimmed.equals(item)) {
|
|
item = "BAR";
|
|
break;
|
|
}
|
|
}
|
|
System.out.println(item);
|
|
}
|
|
}
|