use boolean value for loop

Posted by Leslie on Stack Overflow See other posts from Stack Overflow or by Leslie
Published on 2010-04-06T19:01:07Z Indexed on 2010/04/06 19:03 UTC
Read the original article Hit count: 324

Filed under:
|

So technically a boolean is True (1) or False(0)...how can I use a boolean in a loop?

so if FYEProcessing is False, run this loop one time, if FYEProcessing is true, run it twice:

for (Integer i=0; i<FYEProcessing; ++i){
   CreatePaymentRecords(TermDates, FYEProcessing);      
}

© Stack Overflow or respective owner

Related posts about java

Related posts about for-loop