This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "regarding POI HSSF programming" Watch "regarding POI HSSF programming" New topic
Author

regarding POI HSSF programming

Ron Isac
Greenhorn

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

Joined: May 26, 2003
Posts: 30383
    
150

Ron,
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.


[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