import java.util.ArrayList; public class Solution { public static ArrayList<Integer> printMatrix(int[][] matrix) { ArrayList<Integer> a = new ArrayList<>(); if (matrix.length == 0 || matrix[0].length == 0) return a; int i, left = 0, top = 0, right = mat...