File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Identify even numbers or rows in a loop Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Identify even numbers or rows in a loop" Watch "Identify even numbers or rows in a loop" New topic
Author

Identify even numbers or rows in a loop

Reggie McDougal
Ranch Hand

Joined: Sep 27, 2004
Posts: 69
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?

Reg


You can never drink too much
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60046
    
  65



[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Identify even numbers or rows in a loop
 
Similar Threads
Can you eplain this code
looped menu
what is the difference
String compression
How to identify infinite loop in servlet