close
Hello World[編輯]
下面這個程式顯示「Hello, world!」然後結束執行,注意java.lang
套件是自動載入的,所以不需要在程式之前加入import java.lang.*;
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World!"); // Prints the string to the console.
}
}
全站熱搜
留言列表