【发布时间】:2009-09-30 13:31:20
【问题描述】:
public static void main(String[] args){
Employee [] employeeList =
{
// build your list here
};
}
我该如何构建我的数组。
数组只是在另一个类中定义的 2 个字符串。
class Employee
{
protected String name;
protected String jobTitle;
Employee(String n, String title)
{
name = n;
jobTitle = title;
}
}
【问题讨论】: