code: public HSSFWorkbook toExcel(HSSFWorkbook wb, String sheetName, Collection<Object[]> datas,
        String propertyShowKeys) throws Exception {
      HSSFSheet sheet = wb.createSheet(sheetName);
      HSSFRow row = null;
      HSSFCell cell = null;
  
      /** **************** 取得传入的list列名称和显示名称 ********** */
      String[] pShowKeys = Tokenizer2StringArray(propertyShowKeys, ",");
      // 创建�?行（标题)
      row = sheet.createRow(0); // 建立新行
      // 显示标题列名
      for (int i = 0; i < pShowKeys.length; i++) {
        cell = row.createCell(i); // 建立新cell
        // cell.setEncoding(HSSFCell.ENCODING_UTF_16);
        cell.setCellValue(new HSSFRichTextString(pShowKeys[i]));
      }
      // 逐行取数
      int rowId = 1;// 数据行号（从2行开始填充数�?)
      for (Iterator<Object[]> iter = datas.iterator(); iter.hasNext(); rowId++) {
        row = sheet.createRow(rowId); // 建立新行
        Object[] objs = iter.next();
        // 生成每一�?
        for (int j = 0; j < objs.length; j++) {
          cell = row.createCell(j); // 建立新cell
          // cell.setEncoding(HSSFCell.ENCODING_UTF_16);
          cell.setCellValue(new HSSFRichTextString((objs[j] == null) ? "" : objs[j].toString()));
        }
      }
      return wb;
    }
docs: 将一个对象数组的集合导出成excel
  
  @param datas a {@link java.util.Collection} object.
  @param propertyShowKeys a {@link java.lang.String} object.
  @throws java.lang.Exception if any.
  @param wb a {@link org.apache.poi.hssf.usermodel.HSSFWorkbook} object.
  @param sheetName a {@link java.lang.String} object.
  @return a {@link org.apache.poi.hssf.usermodel.HSSFWorkbook} object.