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.
    }
}
arrow
arrow
    全站熱搜

    歐巴珊手繪設計 發表在 痞客邦 留言(0) 人氣()