Page 2 of 2 FirstFirst 12
Results 21 to 21 of 21
  1. #21
    j2me64's Avatar
    j2me64 is offline Senior Member
    Join Date
    Sep 2009
    Zurich, Switzerland
    Rep Power

    Default Re: How to create a fixed size ArrayList with few functionalities as follows..

    Quote Originally Posted by JosAH View Post
    All that juggling in you add( ... ) method isn't necessary; the following will do fine:
    right. when i implemented the example i was thinking about queues and stacks and i forgot, that the add() method of list without an argument always insert the element at the end of the list. thanks anyway.
    Last edited by j2me64; 01-03-2012 at 07:16 PM.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. ArrayList size error
    By wepwep in forum New To Java
    Replies: 9
    Last Post: 03-29-2011, 09:57 AM
  2. Replies: 0
    Last Post: 03-01-2011, 07:57 AM
  3. How to correctly use a fixed size thread pool?
    By johann_p in forum Threads and Synchronization
    Replies: 1
    Last Post: 09-19-2010, 02:04 AM
  4. ArrayList pointer size java
    By senorbum in forum Advanced Java
    Replies: 6
    Last Post: 05-20-2010, 09:44 AM
  5. Limiting size of ArrayList
    By ravian in forum New To Java
    Replies: 3
    Last Post: 01-29-2008, 06:37 AM

Tags for this Thread

Posting Permissions

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