Java implementation to sort the rows of matrix in ascending order followed by sorting the columns in descending order
import java . util . Arrays ; import java . util . Collections ; class GFG { static int MAX_SIZE = 10 ;