includes/org/apache/poi/hssf/usermodel/HSSFRow.java
@Override
    public HSSFCell createCell(int columnIndex, int type)
    {
        short shortCellNum = (short)columnIndex;
        if(columnIndex > 0x7FFF) {
            shortCellNum = (short)(0xffff - columnIndex);
        }

        HSSFCell cell = new HSSFCell(book, sheet, getRowNum(), shortCellNum, type);
        addCell(cell);
        sheet.getSheet().addValueRecord(getRowNum(), cell.getCellValueRecord());
        return cell;
    }
/**
     * Use this to create new cells within the row and return it.
     * <p>
     * The cell that is returned is a CELL_TYPE_BLANK. The type can be changed
     * either through calling setCellValue or setCellType.
     *
     * @param columnIndex - the column number this cell represents
     *
     * @return HSSFCell a high level representation of the created cell.
     * @throws IllegalArgumentException if columnIndex < 0 or greater than 255,
     *   the maximum number of columns supported by the Excel binary format (.xls)
     */
Use this to create new cells within the row and return it.

The cell that is returned is a CELL_TYPE_BLANK. The type can be changed
either through calling setCellValue or setCellType.

@param columnIndex - the column number this cell represents

@return HSSFCell a high level representation of the created cell.
@throws IllegalArgumentException if columnIndex < 0 or greater than 255,
the maximum number of columns supported by the Excel binary format (.xls)
Use this to create new cells within the row and return it . The cell that is returned is a CELL_TYPE_BLANK . The type can be changed either through calling setCellValue or setCellType . @param columnIndex - the column number this cell represents @return HSSFCell a high level representation of the created cell . @throws IllegalArgumentException if columnIndex < 0 or greater than 255 the maximum number of columns supported by the Excel binary format ( . xls )
@Override
    public HSSFCell createCell(int columnIndex, int type)
    {
        short shortCellNum = (short)columnIndex;
        if(columnIndex > 0x7FFF) {
            shortCellNum = (short)(0xffff - columnIndex);
        }
        HSSFCell cell = new HSSFCell(book, sheet, getRowNum(), shortCellNum, type);
        addCell(cell);
        sheet.getSheet().addValueRecord(getRowNum(), cell.getCellValueRecord());
        return cell;
    }
@ Override public HSSFCell createCell ( int columnIndex , int type ) { short shortCellNum = ( short ) columnIndex ; if ( columnIndex > 0x7FFF ) { shortCellNum = ( short ) ( 0xffff - columnIndex ) ; } HSSFCell cell = new HSSFCell ( book , sheet , getRowNum ( ) , shortCellNum , type ) ; addCell ( cell ) ; sheet . getSheet ( ) . addValueRecord ( getRowNum ( ) , cell . getCellValueRecord ( ) ) ; return cell ; }
Use this to create new cells within the row and return it.
Use this to create new cells within the row and return it .