Java教學
IanChang
18.5K views
Open Source Your Knowledge, Become a Contributor
Technology knowledge has to be shared and made accessible for free. Join the movement.
Hello World!
學習程式語言第一課都是Hello World
我們將學到如何輸出Hello World到控制台
Hello World
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// {
package com.yourself;
import java.io.PrintStream;
public class lesson1 {
// }
public static void helloWorld() {
//只要改變""裡的東西就可以輸出不一樣的字喔
System.out.println("Hello World");
// ^
// |
// 這裡
}
//{
}
//}
Press desired key combination and then press ENTER.
請你將程式改成輸出Hi Java到控制台
測驗
Hi Java
1
2
3
4
5
6
7
8
9
10
11
//{
package com.yourself;
public class lesson1Exercise {
//}
public synchronized static void hiJava() {
}
//{
}
//}
Press desired key combination and then press ENTER.
Open Source Your Knowledge: become a Contributor and help others learn. Create New Content