mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-03 11:47:50 +07:00
12 lines
247 B
Java
12 lines
247 B
Java
// "Replace with collect" "true"
|
|
import java.util.*;
|
|
|
|
class A {
|
|
public List<? super Integer> sum() {
|
|
List<? super Integer> result = new ArrayList<>();
|
|
for(i<caret>nt i=0; i<10; i++) {
|
|
result.add(i*2);
|
|
}
|
|
return result;
|
|
}
|
|
} |