有哪位大佬能告訴我哪出錯(cuò)了嗎?
package com.imooc;
import java.util.Arrays;
public class HelloWorld {
?public static void main(String[] args) {
??
?
?String hobbies[]={"movie","game","sports"};
?Arrays.sort(hobbies);
?foreach(String hobby:hobbies){
?System.out.println(hobby);}
2020-02-18
最后是不是少了兩個(gè)大括號(hào)
2020-03-27
倒數(shù)第二行 ?foreach 改成for?