Original Post
Something which has been missing from Java for a long time is about to be added in version 1.5: the ability to declare a dynamic collection, declaring the type at the same time (like in stl for example).
see here
This is a very good thing IMHO. It means you don't have to cast objects when accessing the list, which is, frankly, a pain in the arse.
I never understood why it wasn't like this in the first place. You have to wonder about the mentality of a programmer who wants to put objects of completely unrelated types in a collection together.
BTW, You'd declare your list like this:
LinkedList stringList = new LinkedList();
Look familiar? A few more changes like this, and they'll have c++
[edited by - benjamin bunny on December 7, 2002 3:48:27 PM]
