Question: Given the following: double [ ] [ ] something = { { 2 . 5 , 6 . 8 , 8 . 3 , 2

Given the following:
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 complete new array that looks like {3.1,4.1,5.9,2.6,8.4}.
a
double[] temp ={3.1,4.1,5.9,2.6,8.4}; something[2]= temp;
b
something[1][0]=3.1; something[1][1]=4.1; something[1][2]=5.9; something[1][3]=2.6; something[1][4]=8.4;
c
something[1]={3.1,4.1,5.9,2.6,8.4};
d
double[] temp ={3.1,4.1,5.9,2.6,8.4}; something[1]= temp;
e
something[2]= new {3.1,4.1,5.9,2.6,8.4};

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!