【发布时间】:2020-07-14 04:04:19
【问题描述】:
我写了这个,但是所有单元格都填在一起。
我该如何解决。
Integer [] history=new Integer[5];
for (int i=0;i<history.length;i++) {
history[i]=Jamkon.intValue();
}
txt_H.setText(Arrays.toString(history));
【问题讨论】:
-
写完
txt_H.setText(Arrays.toString(history));之后,输出是什么,你想得到什么作为正确的输出? -
看看这个:array fill method
标签: java android arrays for-loop debugging