将m行n列数组从1~m*n螺旋输出 效果如下: import java.util.Scanner; public class LuoxuanDemo { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int m = sc.nextInt(); int n = sc.nextInt(); //给定数组----存储数据 int[][] arr = new int[m]