Home Tutorialhelp Comment for (Iterator it = query.iterate(); it.hasNext();)

 
 

Comment

Bharathi
for (Iterator it = query.iterate(); it.hasNext();),
March 27, 2007 at 4:51 PM

for (Iterator it = query.iterate(); it.hasNext();) {
Insurance insurance = (Insurance) it.next();
System.out.println("ID: " + insurance.getLngInsuranceId());
System.out.println("Name: " + insurance.getInsuranceName());

for This code we are getting insurance instance.coming to previous lession it is an object array type.May i know what is exact return type.

Thanks,
Bharathi

View All Comments | View Tutorial
Related Tutorial and Articles

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.