Ah The first program that everyone tends to write when learning a new programming language is Hello World. So, what is Hello World? Hello World is a simple program that simplay outputs the words "Hello World".
In Java we would write this as follows:
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World");
}
}
It's that simple. If you haven't guessed yet, here's the output of the file:
Hello World
No comments:
Post a Comment