Morepublic class More extends Object
Constructors Summary |
---|
public More(int linesPerPage, Reader src, Writer dest, Reader fromUser, Writer toUser, String promptChar, String prompt)
loopUntilQuit(new User(fromUser, toUser, promptChar, prompt),
new Pager(linesPerPage, src, dest));
|
Methods Summary |
---|
private void | loopUntilQuit(User user, Pager pager)
do {
pager.nextPage();
} while (pager.hasNext() && user.wantsToContinue());
|
|