mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-03 19:58:23 +07:00
12 lines
336 B
Java
12 lines
336 B
Java
// "Replace with collect" "true"
|
|
import java.util.*;
|
|
import java.util.stream.Collectors;
|
|
|
|
public class Test {
|
|
public static void main(String[] args) {
|
|
final double[] array = new double[10];
|
|
final List<Double> list = Arrays.stream(array).boxed().collect(Collectors.toList());
|
|
// Cannot be replaced with list.addAll()
|
|
}
|
|
}
|