mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 02:38:59 +07:00
13 lines
237 B
Java
13 lines
237 B
Java
// "Replace Stream API chain with loop" "true"
|
|
|
|
import java.util.List;
|
|
|
|
public class Main {
|
|
public long test(List<String> list) {
|
|
long count = 0L;
|
|
for (String s : list) {
|
|
count++;
|
|
}
|
|
return count;
|
|
}
|
|
} |