【发布时间】:2014-07-09 15:14:21
【问题描述】:
为什么这个语句在下面提到的程序中给我一个错误? for(int y=0, int z=0; z
我用的程序是::
class Testloops
{
public static void main(String[] args)
{
int[] x={ 7,6,5,2,8,9,3};
for(int y=0, int z=0; z<x.length;z++)
{
y= x[z];
System.out.println(y+ " ");
}
}
}
【问题讨论】:
标签: java