Java hello world

By | 11/11/2014

As I said on the previous post, I’ll be adding my old Java homework here. They start of pretty simple but will get more complex later on.

The first program you always write when learning a new language: Hello World.

public class HelloWorld {
 public static void main(String []args){
  System.out.print("Hello World!");

The file name must always match the class name (in this case the file would be “”).

I use Eclipse IDE Version: Luna Service Release 1 (4.4.1) to compile my java projects.

Leave a Reply

Your email address will not be published. Required fields are marked *