src/ca/rmen/pdm/xls2html/main/Xls2Html.java
/**
     * Read the first row in an Excel sheet and return the list of cell values.
     */
Read the first row in an Excel sheet and return the list of cell values.
Read the first row in an Excel sheet and return the list of cell values .
private static List<String> readColumnNames(Sheet sheet) {
        Cell[] headerRow = sheet.getRow(0);
        List<String> columnNames = new ArrayList<String>();
        for (Cell headerCell : headerRow)
            columnNames.add(headerCell.getContents());
        return columnNames;
    }
private static List < String > readColumnNames ( Sheet sheet ) { Cell [ ] headerRow = sheet . getRow ( 0 ) ; List < String > columnNames = new ArrayList < String > ( ) ; for ( Cell headerCell : headerRow ) columnNames . add ( headerCell . getContents ( ) ) ; return columnNames ; }
Read the first row in an Excel sheet and return the list of cell values.
Read the first row in an Excel sheet and return the list of cell values .