Removing a row from an Excel sheet with Apache POI HSSF

前端 未结 7 1101
小鲜肉
小鲜肉 2020-11-29 05:38

I\'m using the Apache POi HSSF library to import info into my application. The problem is that the files have some extra/empty rows that need to be removed first before pars

7条回答
  •  心在旅途
    2020-11-29 06:29

    My special case (it worked for me):

        //Various times to delete all the rows without units
        for (int j=0;j<7;j++) {
          //Follow all the rows to delete lines without units (and look for the TOTAL row)
          for (int i=1;i

提交回复
热议问题