dcsimg
Getting buffer records from a list
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Friday, September 19, 2003 04:40 AM


In a method,I get all records [say 120]in a list. I have to get buffer records (say 20 )from this list everytime I call this method.


I am trying to put those buffer in a vector.But the issue is I am not getting logic to get next 20 records
when I call this method repatedly.Is there any sample code
or logic which u can show me?
NO JDK 1.4 SOLUTION ,PLEASE.JDK 1.3 ONLY.

Re: Getting buffer records from a list

Posted By:   Anonymous  
Posted On:   Sunday, September 21, 2003 04:08 AM

Done.Discarded idea of using vector .Used list instead of vector.Thanks for your time.


aList = aList.subList(startIndex,endIndex) and
Before calling this I initialized :

startindex =0;

endIndex = buffersize;

then :

startIndex = startIndex + buffersize;

endIndex = endIndex + buffersize;

About | Sitemap | Contact