CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    Does Java have collection classes? ie List and Array?

    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.


  2. #2
    Join Date
    May 1999
    Location
    Pune, MH, India.
    Posts
    453

    Re: Does Java have collection classes? ie List and Array?

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured