This week's book giveaway is in the
We're giving away four copies of
and have John Sonmez on-line!
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
this week in the
Identify even numbers or rows in a loop
Joined: Sep 27, 2004
Jan 17, 2005 16:49:00
Can anyone tell me how I might identify if an element in a loop is even.
eg. a rowcount var - if it can be divided by 2 etc..
does any one have a code example?
You can never drink too much
Author and ninkuma
Joined: Jan 10, 2002
Jan 17, 2005 17:03:00
(rowNumber % 2) == 0
Asking smart questions
Books by Bear
I agree. Here's the link:
subject: Identify even numbers or rows in a loop
Can you eplain this code
what is the difference
How to identify infinite loop in servlet
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014