thanks for all the help... think the error i 1st encounter is my stupid self trying to display a shorter version of my array.. did not realise that the value is hidden in the array index i did not...
Type: Posts; User: bczm8703
thanks for all the help... think the error i 1st encounter is my stupid self trying to display a shorter version of my array.. did not realise that the value is hidden in the array index i did not...
Weird... As stated in my first post. I tried your method and did not get your result. Will check where I did wrong
double[][] a1 = new double[][] {{2.5,3.6,0.7,0.01},{0.85,1.32,0.20,0.992}};
based on this the output after sorting should be
a1[0][0] = 0.01 a1[1][0] = 0.20
a1[0][1] = 0.7 a1[1][0] =...
hi.. i am trying to sort my 2D array such that only the 2nd column get sorted.. i tried to use Arrays.sort(arr[a]) but it seem to sort the whole array
example of what i want:
before sort...