Results 1 to 3 of 3
  1. #1
    sunilpatel28 is offline Member
    Join Date
    Dec 2008
    Posts
    8
    Rep Power
    0

  2. #2
    Sven is offline Member
    Join Date
    Dec 2008
    Location
    Enschede, Overijssel, the Netherlands
    Posts
    19
    Rep Power
    0

    Default

    It might be just me, but I'm slightly annoyed by the fact that two of your posts here do not give any context whatsoever and you expect us to answer questions that are already explained in detail, even in the API itself.

    Take a look at ArrayList in the Java API, it explains in detail what you have to do to make it synchronized.

    Very short:
    1) Wrap it with Collections.synchronizedList.
    2) Use a Vector. The only difference between Vector and ArrayList is that Vector is synchronized.

  3. #3
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

    Default

    It might be just me
    It's not just you. I would recommend that the original poster put in as much effort to solving his problems and asking his questions as he'd like one of the volunteers here to put in to help him.

Similar Threads

  1. Replies: 2
    Last Post: 04-21-2008, 11:43 AM
  2. ArrayList
    By kizilbas1 in forum New To Java
    Replies: 1
    Last Post: 01-12-2008, 08:48 PM
  3. ArrayList
    By kizilbas1 in forum New To Java
    Replies: 11
    Last Post: 12-05-2007, 07:30 PM
  4. New to arraylist
    By kleave in forum New To Java
    Replies: 2
    Last Post: 11-19-2007, 06:45 PM
  5. Help ArrayList.add()
    By eNine in forum New To Java
    Replies: 2
    Last Post: 08-06-2007, 01:13 PM

Posting Permissions

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