title: Apache Poi: Converting from HSSF to SS?
body: <p>I've converted all of my old code in HSSF to SS except for the portion where I make the work book.</p>
  
  <hr>
  
  <p><strong>Old Code:</strong>
  HSSFWorkbook wb = new HSSFWorkbook(new FileInputStream(file));</p>
  
  <hr>
  
  <p><strong>New Non-working Code:</strong>
  Workbook[] wb2 = new Workbook[] {new FileInputStream};</p>
  
  <hr>
  
  <p>This is an example of conversion that the site gave:</p>
  
  <p>NEW: Workbook[] wbs = new Workbook[] { new HSSFWorkbook(), new XSSFWorkbook() };
  OLD: HSSFWorkbook wb = new HSSFWorkbook();</p>