public void removeThem(int nrF){
if(index == 0){
System.out.println("array is empty!");
return;
}
for(int i = 0; i < index; i++){
String e = books[i].getName();
if(e.length() > 12 && e.split(" ").length > nrF){
for(int j = i; j < index - 1; j++){
books[j] = books[j + 1];
}
books[--index] = null;
i--;
}
}
}
nrF是一个句子的单词数。我不明白为什么书[j]等于书[j + 1]?