java中的类数组 [英] array of class in java
本文介绍了java中的类数组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我为类的数组做了一个例子:/
i weant example for array of class please :/
推荐答案
由Google提供,Java - Arrays [ ^ ]
Courtesy of Google, Java - Arrays[^]
请看我过去的回答:制作联系人管理系统 [ ^ ]
我建议使用ArrayList
而不是数组。ArrayList
比数组更强大,因为提供了管理数组大小的简单方法!
Please, see my past answer: Making Contact Management System[^]
I'd suggest there to useArrayList
instead of array.ArrayList
is more powerful then array, because provides simple way to manage the size of array!
公共类A {
A [] class = new A [10];
}
更多 techwoodal [ ^ ]
这篇关于java中的类数组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文