for(Iterator<Article> it = articles.iterator(); it.hasNext(); ) {
Article ar = it.next();
}
这个要怎么改??
------解决方案--------------------
1)
for(int i=articles.length-5,i<articles.length;i++) {
Article ar = articles[i]
}
2)
int i=0;
for(Iterator<Article> it = articles.iterator(); it.hasNext(); ) {
Article ar = it.next();
if(i>articles.lenght-5){
这里写你想干啥
}
i++;
}