java 2

时间:2019-10-08 23:10:07   收藏:0   阅读:81

数组定义:int []a={1,2,3},b;b=a[0];yes

int []a={1,2,3};int []b=a[0];yes;

int []a={1,2,3};int b=a[0];error;

 

不定长数组表示: 类型 ...数组名;

for each : for(参数名  :  数组名)

 

原文:https://www.cnblogs.com/jiangtianji/p/11638154.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!