Slight change to sheet example

git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352171 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Glen Stampoultzis 2002-03-10 12:00:57 +00:00
parent 13e584dbc8
commit 9e7840d3f9
1 changed files with 2 additions and 1 deletions

View File

@ -71,7 +71,8 @@ public class NewSheet
throws IOException throws IOException
{ {
HSSFWorkbook wb = new HSSFWorkbook(); HSSFWorkbook wb = new HSSFWorkbook();
HSSFSheet sheet = wb.createSheet("new sheet"); HSSFSheet sheet1 = wb.createSheet("new sheet");
HSSFSheet sheet2 = wb.createSheet("second sheet");
FileOutputStream fileOut = new FileOutputStream("workbook.xls"); FileOutputStream fileOut = new FileOutputStream("workbook.xls");
wb.write(fileOut); wb.write(fileOut);
fileOut.close(); fileOut.close();