感覺和答案一樣一樣的啊
public class HelloWorld {
??? public static void main(String[] args) {
??
??// 定義一個長度為 3 的字符串數組,并賦值初始值
??String[] hobbys = { "sports", "game", "movie" };
??System.out.println("循環輸出數組中元素的值:");
??
??// 使用循環遍歷數組中的元素
??
??for( int i=0 ; i< hobbys.length ; i++ )
??? {?
??????? System.out.printl(hobbys[i]);
??? }
??
??
??
?}
}
2019-07-11
println打成printl了