package dierge;
public class Shuzu {
public static void main(String args[]){
int[]ags=new int[5];
int i;
for(i=0;i<ags.length;i++){
ags[i]=i;
System.out.println("ags["+i+"]是:"+ags[i]);
}
}
}
package dierge;
public class Shuzu {
public static void main(String args[]){
int[]ags=new int[1];
System.out.println("int类型数组的默认值是:"+ags[0]);
boolean[]a=new boolean[1];
System.out.println("boolean类型数组的默认值是:"+a[0]);
byte[]b=new byte[1];
System.out.println("byte类型数组的默认值是:"+b[0]);
short[]c=new short[1];
System.out.println("short类型数组的默认值是:"+c[0]);
char[]d=new char[1];
System.out.println("char类型数组的默认值是:"+d[0]);
long[]e=new long[1];
System.out.println("long类型数组的默认值是:"+e[0]);
float[]f=new float[1];
System.out.println("float类型数组的默认值是:"+f[0]);
double[]g=new double[1];
System.out.println("double类型数组的默认值是:"+g[0]);
}
}
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有