mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-02 11:18:16 +07:00
14 lines
265 B
Java
14 lines
265 B
Java
// "Replace Stream API chain with loop" "true"
|
|
|
|
import java.util.List;
|
|
|
|
public class Main {
|
|
public void test(List<String> list) {
|
|
long count = 0;
|
|
for (String s : list) {
|
|
count++;
|
|
}
|
|
long x = count;
|
|
System.out.println(x);
|
|
}
|
|
} |