-2
我想來回一個字符串數組並將其放在我的文本視圖上,但是當返回程序停止時,我的問題是什麼?往返一個字符串數組
String[] q = new String[20];
...
int a =0;
q[0]="a";
q[1]="b";
q[2]="c";
...
public void back(View v) {
a--;
u.setText(q[a]);
}
public void next(View v) {
a++;
u.setText(q[a]);
}