aspose file tools*
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
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: 29261
    
140

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: regarding POI HSSF programming
 
Similar Threads
java excel api
java.lang.OutOfMemoryError using Apache POI.jar
how can convert excel to pdf .
Reading Excel sheet
Jakarta POI vs Jasper Reports.