In this tutorial we will look introduction to Java programming language and write our first Java application. Hello World
applications are very popular in different programming languages. Generally the first code run by the most of the beginners will be the Hello World
example.
在本教程中,我们将介绍Java编程语言,并编写我们的第一个Java应用程序。 Hello World
应用程序在不同的编程语言中非常受欢迎。 通常,大多数初学者运行的第一个代码将是Hello World
示例。
你好,世界 (Hello World)
What is the meaning of Hello World
. Our first application is like a newborn baby and shouts to the world as Hello World
.
Hello World
的含义是什么。 我们的第一个应用程序就像刚出生的婴儿一样,向世界大喊“ Hello World
。
Java Hello世界 (Java Hello World)
Following java code will print Hello World
statement to the default output which is generally a console.
以下Java代码会将Hello World
语句打印到默认输出(通常是控制台)。
public class HelloWorld {
public static void main(String[] args) {
// Prints "Hello, World" to the terminal window.
System.out.println("Hello, World");
}
}
This code can be compiled and run according to the following tutorials.
该代码可以根据以下教程进行编译和运行。
http://www.poftut.com/java-basics-comments/
http://www.poftut.com/java-basics-comments/
翻译自: https://www.poftut.com/java-programming-hello-world-application/