J2ee开发技术(二)(ppt 208页)(英文)
所属分类:信息技术
文件大小:1393 KB
下载要求:10 学币或VIP
点击下载Arrays
arraysofobjectsholdreferences
Weeble[]a;//Nullreference
Weeble[]b=newWeeble[5];//Nullreferences
Weeble[]c=newWeeble[4];
for(inti=0;i<c.length;i++)c[i]=newWeeble();
Weeble[]d={newWeeble(),newWeeble(),newWeeble()};
a=newWeeble[]{newWeeble(),newWeeble()};
Arrays
arraysofprimitivesholdtheprimitivevalues
int[]e;//Nullreference
int[]g=newint[4];
for(inti=0;i<g.length;i++)g[i]=i*i;
int[]h={11,47,93};
e=h;
hide(newWeeble[]{newWeeble(),newWeeble()})
Containerofprimitives
Containerclassescanholdonlyreferencestoobjects
Arraycanreferencesorprimitives
Integer,Double
Returninganarray
String[]floatrSet(intn){….}
..............................
上一篇:IPv6技术基础与IPv6基础知识讲座(ppt 79页
精品资料网 m.cnshu.cn
Copyright © 2004- 粤ICP备10098620号-1