Created
October 7, 2015 08:26
-
-
Save ssd863419/12fa3c71187f837dc4b0 to your computer and use it in GitHub Desktop.
编写一个Java程序在屏幕上输出“hello world”
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
public static void main(String[] args) { | |
System.out.println("hello world"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
public class Test {
public static void main(String[] args) {
new Test().t1("hello world");
}
public void t1(String str) {
System.out.println(str);
}
}