hello world java
public class Main {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}
hello world java
// This is a simple Java program.
// FileName : "HelloWorld.java".
class HelloWorld
{
// Your program begins with a call to main().
// Prints "Hello, World" to the terminal window.
public static void main(String args[])
{
System.out.println("Hello, World");
}
}
hello world java
// This is a simple Java program.
// FileName : "HelloWorld.java".
class HelloWorld
{
// Your program begins with a call to main().
// Prints "Hello, World" to the terminal window.
public static void main(String args[])
{
System.out.println("Hello, World");
}
}
hello world java
class App {
public static void main(String[] args) {
// Make sure to save the file with the .java extension and the program
// name should mark the class name, in this case, App
System.out.println("Hello World");
}
}
hello world java
public class HelloJava
{
public static void main(String[] args)
{
System.out.println("Hello World.");
}
}
hello world java
public class FirstProgram
{
public static void main(String[] args)
{
System.out.println("Hello World.");
}
}
hello world java
class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}
|