您现在的位置: 精品资料网 >> 管理信息化 >> 信息技术 >> 资料信息

J2ee开发技术(二)(ppt 208页)(英文)

所属分类:
信息技术
文件大小:
1393 KB
下载地址:
相关资料:
j2ee,开发技术
J2ee开发技术(二)(ppt 208页)(英文)内容简介
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){….}

..............................