public class 在做一个 {
public static void main(String[] args) {
String[] hobbys = { "sports", "game", "movie" };
System.out.println("循环输出数组中元素的值:");
for(int i=0;i<hobbys.length;i++);{
System.out.println(hobbys[i]);
}
}
}
在myeclipse中运行不了,提示“i cannot be resolved to a variable"看到别的同学答案也是这么写。不知道能不能运行?求帮助,谢谢!