【发布时间】:2016-03-30 03:17:57
【问题描述】:
我有这样的变量 int 数组
int[] sample = new int[];
sample[0] = 1;
sample[1] = 2;
String two = sample[1].toString(); <==== i have problem with this
System.out.println(two);
如何解决? 我不能将 int[1] 的值显示为字符串..
【问题讨论】:
-
你的意思是
sample[1]而不是int[1],对吧?