jQuery in Action, 2nd edition
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

Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
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: 31424

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]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
It is sorta covered in the JavaRanch Style Guide.
subject: regarding POI HSSF programming