• | • | • |
April 13, 2004 |
A First Look at J2SE 1.5 |
This month's meeting will be a first look at J2SE 1.5 with a focus on the most significant new feature: Generics. This, of course, is the use of templates like in C++. Here's a short example: |
LinkedListstringList = new LinkedList (); stringList.add("ACGNJ"); stringList.add("Java"); stringList.add("Users"); stringList.add("Group"); for(String str : stringList) System.out.print(str + " "); // output ACGNJ Java Users Group