according to the sun api there is no add method for array list, which can add a number. If you already have a ArrayList of these 30 records and want to extract 10 of them to a new arraylist then may be you should iterate the list containing 30 records and add the 10 records you need in a new list.But to do this, your records need to be indexed previously . Can you explain a little more about your problem... [ October 15, 2008: Message edited by: John Robert ]

Well, it does have something to do with servlets. Basically, I am creating a paginating system. The user has records and he can go through 50 records at a time. What Im trying to code here is the "previous page link". If the user clicks the previous link it should load the last 50 records. I dont know where to start on this issue. I have tried several concepts but none of them work as they should. [ October 15, 2008: Message edited by: shaf maff ]

Yes. The problem is I am handling data from a session and not requesting it from the server, so its more complex. I have managed to come up with a solution that works though after hours of head scratching.