DataDrivenFramework/src/main/java/com/datadriven/framework/utils/ReadExcelDataFile.java
public boolean addSheet(String sheetname) {

		FileOutputStream fileOut;
		try {
			workbook.createSheet(sheetname);
			fileOut = new FileOutputStream(path);
			workbook.write(fileOut);
			fileOut.close();
		} catch (Exception e) {
			e.printStackTrace();
			return false;
		}
		return true;
	}
/****************** Returns true if sheet is created successfully else false ***********************/
Returns true if sheet is created successfully else false
Returns true if sheet is created successfully else false
public boolean addSheet(String sheetname) {
		FileOutputStream fileOut;
		try {
			workbook.createSheet(sheetname);
			fileOut = new FileOutputStream(path);
			workbook.write(fileOut);
			fileOut.close();
		} catch (Exception e) {
			e.printStackTrace();
			return false;
		}
		return true;
	}
public boolean addSheet ( String sheetname ) { FileOutputStream fileOut ; try { workbook . createSheet ( sheetname ) ; fileOut = new FileOutputStream ( path ) ; workbook . write ( fileOut ) ; fileOut . close ( ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; return false ; } return true ; }
Returns true if sheet is created successfully else false
Returns true if sheet is created successfully else false