Java教學

IanChang
177 views

Open Source Your Knowledge, Become a Contributor

Technology knowledge has to be shared and made accessible for free. Join the movement.

Create Content
註解

Hello World!

學習程式語言第一課都是Hello World

我們將學到如何輸出Hello World到控制台

Hello World
1
7
8
9
10
11
12
13
14
15
16
19
// {...}
public static void helloWorld() {
//""西
System.out.println("Hello World");
// ^
// |
//
}
//{...}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

請你將程式改成輸出Hi Java到控制台

測驗

Hi Java
1
5
6
7
8
11
//{...}
public synchronized static void hiJava() {
}
//{...}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Open Source Your Knowledge: become a Contributor and help others learn. Create New Content