public class Solution { public int threshold; public int rows; public int cols; public int movingCount(int threshold, int rows, int cols) { // 初始化 this.threshold = threshold; this.rows = rows; this.cols = cols; int[][] matrix = new int[rows][cols]; // 定义一个整型数组,用于存放哪些位置可达 0: 表示当前位置不可达 1: 表示当前位置可达 int...