			HSSFRow row = sheet.getRow(j);
			if (row != null) {
				int num = row.getLastCellNum();
				maxCol = num > maxCol ? num : maxCol;
			}
		}
		return maxCol;
	}

	private static int maxCols(XSSFSheet sheet) {
		int maxCol = 0;
		for (int j = 0; j < sheet.getLastRowNum() + 1; j++) {
			XSSFRow row = sheet.getRow(j);
			if (row != null) {
				int num = row.getLastCellNum();