PDA

View Full Version : Need help in Java coding---


hiena_u
10-28-05, 00:00
I have a basic java coded program --
from a file reading input of some records and want to say display 10-20 records each page n go to next page after that---Like COBOL is there a code thats says NEXTPAGE in java or do i use some other String method and put if and else-----..
Pls. lemme know if there is...something....

QuickSilver
10-28-05, 06:55
I'm not sure off hand whether there are any built in functions to do what you've just asked...

Is it feasible to read the entire file into memory (so if the file isn't ridiculously large in size) and load it into a nice data structure/array thereof.
Then you could use a fairly simple for loop based off the number of records per page etc to just display a subset of the array...