請(qǐng)問(wèn)哪里有問(wèn)題
public class XiaoYang {
? ? public static void main(String[] args) {
? ? ? ? String[] hobbys ={"sports", "game", "movie"};
? ? ? ?// String[] hobbys = { "sports", "game", "movie" };
? ? ? ? System.out.println("循環(huán)輸出數(shù)組中元素的值:");
? ? ? ? for(int a=0;a<hobbys.length;a++);
? ? ? ? System.out.println(hobbys[a]);
? }
2016-04-02
不好意思 for后面忘記加大夸號(hào)了