ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
1.二维数组 ![](https://box.kancloud.cn/51552687c32092ea84e162d41c49a0a1_762x443.png) ~~~ package array; public class Array11 { public static void main(String[] args){ //多维数组 int[][] arr={{24,43},{65,76,87},{43,543,75},{54,34,65,7600}}; System.out.println(arr[3][3]); //7600 } } ~~~ ![](https://box.kancloud.cn/5caf73037b61ff22f15c002c0afdf1ed_750x280.png) ~~~ package array; public class Array12 { public static void main(String[] args){ //声明 int[][] arr=new int[3][]; arr[0]=new int[3]; arr[1]=new int[2]; arr[2]=new int[2]; //存数据 for(int i=0;i<arr[0].length;i++){ arr[0][i]=i+5; } for(int i=0;i<arr[0].length;i++){ System.out.println(arr[0][i]); } } } ~~~ ![](https://box.kancloud.cn/6ec278b8318681071a83e6efee8b80ee_115x78.png)