A股上市公司传智教育(股票代码 003032)旗下技术交流社区北京昌平校区

 找回密码
 加入黑马

QQ登录

只需一步,快速开始

© 编号3363 中级黑马   /  2016-3-27 01:56  /  1232 人查看  /  19 人回复  /   0 人收藏 转载请遵从CC协议 禁止商业使用本文


代码如下:
Student[] students = new Student[5];

19 个回复

倒序浏览
Student 类型的数组吧,数组的长度为5 ,中间的students是数组名...
回复 使用道具 举报
lennycxy 来自手机 中级黑马 2016-3-27 09:25:14
藤椅
没见过,求大神
回复 使用道具 举报
Student 类型的数组,数组的长度为5 ~
回复 使用道具 举报
让我想到了 Student  s = new Student(5);  这个是创建一个Student对象,并通过构造函数就行初始化
回复 使用道具 举报
这是创建了一个数组,数组元素的类型是Student。
回复 使用道具 举报
1759418586 发表于 2016-3-27 07:30
Student 类型的数组吧,数组的长度为5 ,中间的students是数组名...

了解,多谢多谢!
回复 使用道具 举报
zsh18353616863 发表于 2016-3-27 10:00
Student 类型的数组,数组的长度为5 ~

嗯,多谢多谢!
回复 使用道具 举报
徐选伟Shirwee 发表于 2016-3-27 10:19
让我想到了 Student  s = new Student(5);  这个是创建一个Student对象,并通过构造函数就行初始化 ...

明白,多谢多谢!
回复 使用道具 举报
ipursue 发表于 2016-3-27 10:33
这是创建了一个数组,数组元素的类型是Student。

嗯,是的,多谢多谢!
回复 使用道具 举报
huhemingtiancai 来自手机 中级黑马 2016-4-3 00:46:16
11#
学习了。
回复 使用道具 举报
Student[] students = new Student[5] ,这是一个Student类型的数组,Student[0] ,Student[1].......Student
[4],每一个数组元素都可以指向一个Student对象
回复 使用道具 举报
创建了一个数组,数组元素的类型是Student,长度为5
回复 使用道具 举报
我是来看楼上学习的
回复 使用道具 举报
Student类型的有5个空间的数组
回复 使用道具 举报
创建一个类型为Student的数组,这个数组的长度是五
回复 使用道具 举报
创建了数组为5大小的student数组
回复 使用道具 举报
数组,数组长度是5
回复 使用道具 举报
兵蜂 发表于 2016-4-3 10:01
Student[] students = new Student[5] ,这是一个Student类型的数组,Student[0] ,Student[1].......Student
...

嗯,很详细。
回复 使用道具 举报
Student 类型的数组,数组的长度为5 ,中间的students是数组名...后面的Student是在堆内存创建的
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 加入黑马