File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

regarding POI HSSF programming

 
Ron Isac
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
author & internet detective
Marshal
Posts: 33696
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic