(String[] args)
| 18 | |
| 19 | |
| 20 | public static void main(String[] args) { |
| 21 | int[][] matrix = new int[][]{ |
| 22 | {1, 2, 8, 9}, |
| 23 | {2, 4, 9, 12}, |
| 24 | {4, 7, 10, 13}, |
| 25 | {6, 8, 11, 15}, |
| 26 | {7, 9, 12, 16} |
| 27 | }; |
| 28 | |
| 29 | // 数组的行数 |
| 30 | int rows = matrix.length; |
| 31 | // 数组行的列数 |
| 32 | int cols = matrix[1].length; |
| 33 | |
| 34 | LOGGER.info(String.valueOf(rows)); |
| 35 | LOGGER.info(String.valueOf(cols)); |
| 36 | |
| 37 | } |
| 38 | |
| 39 | |
| 40 |
nothing calls this directly
no outgoing calls
no test coverage detected