Java: HelloWorld++

That’s right…I wrote a Java app and extended HelloWorld with HelloWorld++. I introduce you to…the newest version of HelloWorld…in Java. {insert dramatic music}

bq. package com.llnw.training;
/**
*
* @author johnb
* @version 1.1
*/
public class Main {
public static void main(String[] args){
System.out.print(“Hello World”);
if(args.length > 0){
System.out.print(“\nand hi ” + args[0]);
}
}
}

Hooah! :-) Ok…this isn’t my first, per se. I built HelloWorld first then HelloWorld++ was the v1.1. hehe.

Some serious/full posts will come soon (post-training).

  • http://www.xyzpdq.org Cody Beckner

    I assume that package is equivelent to “namespace” in c#?

    I know the two are practically duplicates of each other with small things changed here and there.

    it’s interesting to see that minus the “package” keyword, that would compile in c#

    (sigh)

  • John C. Bland II

    Yep, package == namespace.

    They are WAY MORE similar than I thought. I didn’t realize Java has method overloading and a few other goodies C# has as well but it is missing a couple things too. So far the training has been pretty easy to follow due to my C# experience.