File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes regarding POI HSSF programming Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "regarding POI HSSF programming" Watch "regarding POI HSSF programming" New topic

regarding POI HSSF programming

Ron Isac

Joined: Dec 22, 2004
Posts: 9
Can we use array of rows in POI HSSF programming to read data from the excel sheet.
I have declared
HSSFRow row[i]=sheet.getRow[i]();
for declaring 3 rows of the same type.But it gives error []expected.Please help me.
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33102

Yes, you can create an array of any object. You need to declare and use the array in separate parts. For example,

I'm not sure what you are trying to do with this array though. It seems like you might want to get the data from the row/cell and store just that.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link:
subject: regarding POI HSSF programming
jQuery in Action, 3rd edition