数组
北玄仙
一个有爱的平台就会聚集很多分享爱的人
展开
-
数组
数组的声明和创建 声明数组 int[ ] array = null; 创建数组 array = new int[ 10 ]; 给数组元素赋值 null[ 0 ] = 1; null[ 1 ] = 2; null[ 2 ] = 3; null[ 3 ] = 4; … 多维数组的创建与取其中值 public class Array05 { public static void main(String[] args) { //创建一个数组 //int[] b = {1,2原创 2020-11-29 17:34:53 · 123 阅读 · 0 评论 -
数组
数组的声明和创建 声明数组 int[ ] array = null; 创建数组 array = new int[ 10 ]; 给数组元素赋值 null[ 0 ] = 1; null[ 1 ] = 2; null[ 2 ] = 3; null[ 3 ] = 4; … 多维数组的创建与取其中值 ![img](file:///C:\Users\13608\Documents\Tencent Files\1360849655\Image\C2C]1DG1Q4NTC`[E[IF[PZSI.png) public cl原创 2020-11-28 20:08:49 · 103 阅读 · 0 评论