尝试此操作时出现上述错误
for (int i = 0 ; i < uaCount.get(args[1]).occurrences ; i++)
{
out.write(uaCount.get(args[1]).singleValues.get(i));
}
Occurrences 和 singleValues 在这里定义:
public static class NumberHolder
{
public int occurrences = 0;
public int sumtime_in_milliseconds = 0;
public ArrayList<Long> singleValues = new ArrayList<Long>();
}
有没有办法解决这个问题?