Click to See Complete Forum and Search --> : Does Java have collection classes? ie List and Array?


October 5th, 1999, 05:40 AM
This is probably a dumb question, but are there any collection classes in Java?

I need an Array and List class (the List class is most urgent).

Thanks,

Tom.

unicman
October 5th, 1999, 06:00 AM
Java has support for arrays
e.g. 'int iArray[];'

And 'Vector' class can be used either as Array or as a List.

If u want a list which implements PUSH/POP operation or, u want to implement FIFO kind of a thing, u can subclass it and have a list class of ur own with much smaller code.

- UnicMan
http://members.tripod.com/unicman