A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
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