Double[][] something = { {2.5, 6.8, 8.3, 2.3, 0.0}, {6.1, 10.2, 1.3, -2.5, -9.9}, {1.1, 2.3, 5.8, 13.21, 34.55} };
we want to replace the row {6.1, 10.2, 1.3, -2.5, -9.9} with a completely new array that looks like {3.1, 4.1, 5.9, 2.6, 8.4}.
which of the following lines of code will accomplish this?
a. double[] temp = {3.1, 4.1, 5.9, 2.6, 8.4}; something[2] = temp;
b. something[1] = {3.1, 4.1, 5.9, 2.6, 8.4}; something[2] = new {3.1, 4.1, 5.9, 2.6, 8.4};
c. double[] temp = {3.1, 4.1, 5.9, 2.6, 8.4}; something[1] = temp;
d. something[1][0] = 3.1; something[1][1] = 4.1; something[1][2] = 5.9;
e. something[1][3] = 2.6; something[1][4] = 8.4;