Witaj światowy Java
public class Main {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}
Uptight Unicorn
public class Main {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}
// 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");
}
}
public class Hello {
public static void main (String[] args) {
System.out.println("Hello world");
}
}
public class java {
public static void main(String[] args) {
System.out.println("Hello World");
}
}
// 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");
}
}
public class Main {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}
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");
}
}
public class HelloJava
{
public static void main(String[] args)
{
System.out.println("Hello World.");
}
}
public class Main {
public static void main(String[] args) {
System.out.println("This will be printed");
}
}
public class FirstProgram
{
public static void main(String[] args)
{
System.out.println("Hello World.");
}
}