19901120
2016-04-02 21:43
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后面忘记加大夸号了
Java入门第一季(IDEA工具)升级版
1167352 学习 · 18630 问题
相似问题