java删除excel行,使用Java编程删除Excel行

Finding last column cell values. if cell value is "Not Valid" or "Not Applicable", delete the entire row.

The code I have written so far is as follows:

import java.io.FileInputStream;

import java.io.FileNotFoundException;

import java.io.FileOutputStream;

import java.io.IOException;

import org.apache.poi.hssf.usermodel.HSSFWorkbook;

import org.apache.poi.openxml4j.exceptions.InvalidFormatException;

import org.apache.poi.ss.usermodel.Row;

import org.apache.poi.ss.usermodel.Sheet;

import org.apache.poi.ss.usermodel.WorkbookFactory;

import org.apache.poi.ss.usermodel.Workbook;

public class Column

{

public static void main(String[] args) throws InvalidFormatException, FileNotFoundException, IOException

{

try

{

Wo

你可能感兴趣的:(java删除excel行)