I have syntax:
List<double[]> x = new ArrayList<double[]>();
x.add(new double[] { 5,6,7,8 });
How to add 5,6,7,8 automatically? like this
for (int i=5; i<=8; i++) {
**CODE**
}
List<double[]> x = new ArrayList<double[]>();
x.add(new double[] { **CODE** });
So, I want to replace **CODE**, what is that **CODE**? is it possible? Sorry bad English