Content deleted Content added
mNo edit summary |
m Links |
||
Line 1:
'''Java 1.5'''(the "Tiger" relase) became available in Beta in February 2004. Like all versions of [[Java programming language|Java]], it can be downloaded at no charge from [[Sun Microsystems|Sun]]'s website.
This version of Java 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==
Line 21:
for (String s: curses) { result += s; } // fits neatly on one line!<BR>
assert result.equals("foobarsnafu");
|