I have created an application which reads a worksheet from a xlsx file, It working fine , but how can we convert that worksheet into an external xlsx file
My code is as given below
InputStream is = new FileInputStream("C:/Users/Work/Desktop/ss1.xlsx");
Workbook wb = WorkbookFactory.create(is);
int i= wb.getNumberOfSheets();
System.out.println("No fo sheets:"+i);
Sheet sheet = wb.getSheetAt(0);
// how can we convert the sheet to another seperate xlsx file
I am using apache poi library