| Author |
using enhanced for insted of while - for reading resulset
|
Rohit Mehta
Ranch Hand
Joined: Mar 11, 2005
Posts: 77
|
|
hi
how can i read resultset using enhanced for loop - instead of while (rs.next)
thanks
rohit
|
- Rohit
|
 |
Balagopal Kannampallil
Ranch Hand
Joined: Oct 18, 2004
Posts: 111
|
|
You cannot use ResultSet as such in an enhanced for-loop as it expects an Iterable object or an array. This link will help you understand the enhanced for-loop better.
|
Bala
SCJP 5.0
Gonna hunt down SCWCD soon..
|
 |
 |
|
|
subject: using enhanced for insted of while - for reading resulset
|
|
|