That is right folks, Tiger is here at last. For those who do not know what I am talking about, JDK 1.5, aka J2SE 5.0, was released today to the surprise to many. If you still do not know what I am talking about then skip this post.
I have been waiting for this release for a while. I love what they did to the language. Generics, metadata, extended for loop and typesafe enums just to name a few of the features that rock. Here is a modified hello world I wrote this morning just to make sure I wasn’t dreaming:
package com.leggett;
import java.util.ArrayList;
public class TestJava {
private static enum MyEnum { red, blue, green };
public static void main(String[] args) {
ArrayList<String> test = new ArrayList<String>();
test.add("\n\nHello ");
test.add("world");
test.add("! ");
test.add("I ");
test.add("love ");
test.add("Tiger");
test.add("!\n\n");
for (String temp : test) {
System.out.print(temp);
}
checkColor(MyEnum.blue);
}
private static void checkColor(MyEnum test) {
switch (test) {
case red:
System.out.println("\ncolor is red\n");
break;
case blue:
System.out.println("\ncolor is blue\n");
break;
case green:
System.out.println("\ncolor is green\n");
break;
}
}
}
Just pure sweet syntactical candy! Sun even borrowed technology from Apple to allow a shared class cache (for the most used runtime classes like String) to multiple JVM instances on a box. Good stuff Sun, way to go.
As an added bonus Sun release NetBeans 4.0 Beta 2 for they enjoyment of us developers. I have started playing with this IDE and really like it. I have been an Eclipse fan but have started to play around with this version on NetBeans more. It seems to be a little better than Eclipse on my Mac (big plus).
So for those aspiring developers out there, check out JDK 1.5 and the new features. It makes Java code cooler than it already is.



Your distinct personality, The Prime Minister might be found in most of the thriving kingdoms of the time. You are a strategist who pursues the most efficient and logical path toward the realization of the goal that you perceive or visualize. You will often only associate with those people who can assist you in the implementation of your plan. Inept assistants may be immediately discarded as excess baggage. To do otherwise could be seen as inefficient and illogical. On the positive side, you can be rationally idealistic and analytically ideological. You can be a bold decision maker and risk taker who can move society ahead by years instead of minutes. On the negative side, you may be unmerciful, impatient, impetuous and impulsive. Interestingly, your preference is just as applicable in today’s corporate kingdoms.