MCPcopy Create free account
hub / github.com/crossoverJie/JCSprout / main

Method main

src/main/java/com/crossoverjie/algorithm/TwoArray.java:20–37  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected