File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
JDBC and Relational Databases
using enhanced for insted of while - for reading resulset
Joined: Mar 11, 2005
Feb 02, 2009 04:30:21
how can i read resultset using enhanced for loop - instead of while (rs.next)
Joined: Oct 18, 2004
Feb 02, 2009 06:23:46
You cannot use ResultSet as such in an enhanced for-loop as it expects an Iterable object or an array. This
will help you understand the enhanced for-loop better.
SCJP 5.0 and now fighting with ExtJS
I agree. Here's the link:
subject: using enhanced for insted of while - for reading resulset
Enums and operators
Problem with priority Queue
how we can create xls file in java
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015