public class XiaoYang {
public static void main(String[] args) {
String[] hobbys ={"sports", "game", "movie"};
// String[] hobbys = { "sports", "game", "movie" };
System.out.println("循环输出数组中元素的值:");
for(int a=0;a<hobbys.length;a++);
System.out.println(hobbys[a]);
}
不好意思 for后面忘记加大夸号了