mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-11 11:36:59 +07:00
14 lines
321 B
Java
14 lines
321 B
Java
// "Replace with collect" "true"
|
|
import java.util.*;
|
|
|
|
public class Test {
|
|
public static void main(String[] args) {
|
|
final double[] array = new double[10];
|
|
final List<Double> list = new ArrayList<>();
|
|
// Cannot be replaced with list.addAll()
|
|
for (double d : ar<caret>ray) {
|
|
list.add(d);
|
|
}
|
|
}
|
|
}
|