【发布时间】:2014-01-29 11:35:05
【问题描述】:
ArrayList.size() 返回时出现错误。
我的代码
public class College
{
Student s = new Student();
ArrayList <Student> entries;
public College() {
entries = new ArrayList<Student>();
}
public int getSize() {
return entires.size();
}
}
错误
College.java:21: error: cannot find symbol
return entires.size();
^
symbol: variable entires
location: class College
这是什么错误?谁能帮帮我?
提前致谢。
【问题讨论】:
-
错字......请注意。
-
终于有充分理由关闭“这个问题是由无法再复制的问题引起的或简单的排版。”
标签: java object arraylist size