Last active
August 29, 2015 13:57
-
-
Save syusui-s/9527460 to your computer and use it in GitHub Desktop.
Java練習
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.*; | |
import java.io.*; | |
import java.util.*; | |
import java.io.*; | |
class HelloWorld { | |
public static void main(String[] args) { | |
System.out.printf("Hello World!\n"); // util | |
System.out.println("Hello World!"); // io | |
if (args.length != 0) { | |
System.out.println(args[0]); | |
} | |
} | |
} | |
// Javaはクラスの中のmain関数を読んでるっぽい? | |
// importで名前空間をインポートできる | |
// 「.」が名前空間解決演算子になってるのかな? 「::」じゃないことに注意 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment