我必须为此写下条件:
last_page = ((nl.getLength() == 0) -= 1);
在这一行中出现以下错误:
赋值的左边必须是变量
这是我的代码:
int current_page = 25;
boolean last_page;
int prev_page;
int next_page;
NodeList nl = doc.getElementsByTagName(KEY_SONG);
prev_page = (current_page -= 1);
next_page = (current_page += 1);