J
Jo
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
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