my dog learned polymorphism*
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 Android Security Essentials Live Lessons this week in the Android 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: 30138
    
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
 
 
subject: regarding POI HSSF programming
 
Similar Threads
how can convert excel to pdf .
java.lang.OutOfMemoryError using Apache POI.jar
java excel api
Reading Excel sheet
Jakarta POI vs Jasper Reports.