• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

regarding POI HSSF programming

 
Ron Isac
Greenhorn
Posts: 9
  • 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: 34074
337
Eclipse IDE Java VI Editor
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic