How to sort a matrix (two dimensional array) in Java? First sort rows and then all columns?



Hi I just started learning how to program. If I’m trying to sort a two dimensional array in the matrix format manually should I use multiple for loops to sort each sub array and then the full array?


This topic was automatically closed after 3 days. New replies are no longer allowed.