import java.util.ArrayList; /** 使用表格分析法,把矩阵看作excel表格 rowTop: 表格第一行 rowBottom: 表格最后一行 colTop: 表格第一列 colBottom: 表格最后一列 */ public class Solution { public ArrayList<Integer> spiralOrder(int[][] matrix) { /*把需要打印的统一加入集合*/ ArrayList<Integer> array = new ArrayList<>(); if (matrix.length =...