About

I'm a full stack Javascript engineer. I enjoy creating all types of websites and create tutorials on my spare time.

Java Hello World

April 01, 2010

Well I have decided to jump back into Java programming due to some recent events. I went out and bought Sams Teach Yourself Java in 24 Hours to help me in this journey. So to help me grasp the material I wanted to create blog posts/tutorials to help me and to help others who might be on this same goal.

Oh and the two things that you will not see the void main for is applets and servlets. Here is the source code of the file I created

class HelloWorld {
  public static void main(String[] args) {
      String sayHello = "Hello, World!";
      String myName = "John Costanzo";
      int myAge = 28;
      boolean theTruth = false;
      System.out.println(sayHello + " My name is " + myName);
      System.out.println("Is my age " + myAge + "?nThe answer is " + theTruth);
  }
}