How To: Hello World in Java (Video)

Posted on

Here is a really quick and simple tutorial on how to do "Hello World" in Java.

Here is the code I used:

package helloworld;

/**
* @author Mike
*/
public class Main {

  /**
  * @param args the command line arguments
  */
  public static void main(String[] args) {
    // TODO code application logic here
    System.out.println("Hello World");
  }

}

You can download NetBeans IDE from their website and try this yourself for free :)

This was written by Mike Rogers, a freelance Ruby on Rails developer based in London.

Share the ♥ by sharing this!

If you want to discuss this post, feel free to tweet me (@MikeRogers0) or drop me an email. Any code samples unless stated otherwise are licensed under the The MIT License (MIT). Spotted a mistake? Send me a pull request :)