'''Java 1.5'''(the is"Tiger" scheduledrelase) forbecame releaseavailable in 2004;Beta asin of AprilFebruary 2004, the beta version is available. Like all versions of Java, it can be downloaded at no charge from Sun's website.
This version of Java, codenamed "Tiger", contains long-awaited syntax shortcuts such as [[foreach]], [[autoboxing]] and [[typesafe enum]]s. To turn on these features, you must provide the "-source 1.5" switch to the compiler.
==For each==
This code snippet shows the old and new [[for loop]] syntax.
List<String> curses = new ArrayList<String>();<BR>