vendredi 2 avril 2021

Sorting two 2d Arrays randomly same: JAVA [closed]

I wanna sort two double[][] in the same random way:

Before eg:

double[][] one = {
   {1, 2, 3, 4},
   {2, 3, 4, 5},
   {3, 4, 5, 6}
}

double[][] two = {
   {1},
   {2},
   {3}
}

After eg:

double[][] one = {
   {3, 4, 5, 6},
   {1, 2, 3, 4},
   {2, 3, 4, 5}
}

double[][] two = {
   {3},
   {1},
   {2}
}

Thanks for replying :) ~Lars




Aucun commentaire:

Enregistrer un commentaire