public class RowSort { public static void main (String[] argv) { // Some test data: int[][] A = { {1, 0, 1}, {1, 1, 1}, {1, 0, 0}, {0, 0, 0} }; // Before: print (A); rowSort (A); // After: print (A); } static void rowSort (int[][] X) { // Simple Selection Sort. We are sorting only rows. for (int row=0; row