Problem with 2D Doubles array
in
Programming Questions
•
3 months ago
I want to initialize a 2D array like so:
Double[][] positions = { { -175, 0, 167.5 }, { -242.5, 0, 35 }, { 175, 0, 167.5 }, { 242.5, 0, 35 }, { 0, 0, -167.5 }, { 0, 0, -97.5 } };
but I get this error:
"cannot convert from int to Double"
anyone have an idea how I can fix this?
Thank you
1