do something every 1000 records or so
- From: Jo <jodiepool@xxxxxxxxx>
- Date: 15 May 2007 02:17:00 -0700
Ok, this could be a perfect exam question, but it isn't and i need a
good solution
in a function i get 2 int parameters : begin end
they represent the number of records affected , I have to print to a
log at the start of this and then every 1000 records or so, the code
looks something like this:
public Vector findRecords(int beginRange, int endRange)
throws UierException
{
if beginRange == 0 || "some condition so it prints every 1000
records" {
logIt(" Range affected" + beginRange + " to " +
endRange);
......
I would really appreciate the help
oh and by the way, the range varies, it could be 20, 40, 120, or
whatever, so the condition has to check that between beginRange and
endRange is more that 1000x
i m not sure I m explaining the problem properly, so if its not clear
please ask. also there might be an incredibly easy solution, but i
just cant see it :(
Thanks in advance for the help
jo
.
- Follow-Ups:
- Re: do something every 1000 records or so
- From: Richard Senior
- Re: do something every 1000 records or so
- Prev by Date: Re: MD5 algorithm
- Next by Date: Re: Subclassing EnumSet to add an interface?
- Previous by thread: How to display special (unicode) characters
- Next by thread: Re: do something every 1000 records or so
- Index(es):
Relevant Pages
|