mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 02:09:59 +07:00
18 lines
356 B
Java
18 lines
356 B
Java
// "Replace Stream API chain with loop" "true"
|
|
|
|
import java.util.List;
|
|
|
|
public class Main {
|
|
public void test(List<String> list) {
|
|
String res = "";
|
|
for (String s : list) {
|
|
String trim = s.trim();
|
|
if (!trim.isEmpty()) {
|
|
res = trim;
|
|
break;
|
|
}
|
|
}
|
|
System.out.println(res);
|
|
}
|
|
}
|