Is there a way to reverse specific arrays in a multidimensional array in java?
问题 I know how to generally manipulate and create a multidimensional array but I don't know all the utils and features that arrays have. I want to know is if I have a 2D array the size of [5][4] , can I print it where the first line is in order, second is in reverse, and the third is in order... and so on. For example: [1 2 3 4] //in order [8 7 6 5] //reverse [9 10 11 12] //in order [16 15 14 13] //reverse [17 18 19 20] //in order as my teacher stated "Define a two-dimensional array of size m × n