来啦,已经跑了好几圈啦....
Canvas is not supported in your browser.

基础回顾数组

//创建数组的第一种方法
int[] arr=new int[6];
int intValue=arr[5];
//System.out.println(intValue);
//创建数组的第二种方法
int[] x={1,2,3,4};
//System.out.println(x[1]);

//创建数组的第三种方法。
int[] y= new int[]{1,2,3,4,5};

posted @ 2018-10-18 17:22  fangpengcheng_方鹏程  阅读(117)  评论(0编辑  收藏  举报