Shorthand for double array?
in
Programming Questions
•
1 year ago
I have to manually write the values of a double array for a sketch I am making for later reference. I know that a normal array can be written like this (preferred):
- int[] a = {
- 1, 5, 3, 6, 4, 6
- };
instead of (not preferred):
- int[] a = new int[6];
- a[0] = 1;
- a[1] = 5;
- a[2] = 3;
- a[3] = 6;
- a[4] = 4;
- a[5] = 6;
Can this be done for double arrays somehow?
1