public String createHTML(String[][] matrix) {

        //html base
        DomElement divWrapper = new DomElement("div");
        divWrapper.setCssStyle(CSS_STYLE_WRAPPER);

        //table
        DomElement table = divWrapper.addChild("table");
        table.setCssStyle(CSS_STYLE_TABLE);

        //table header
        String headers[] = matrix[0];
        DomElement divColumnHeaders = createColumnHeaders(headers);
        table.addChild(divColumnHeaders);

        //table data
        for (int i = 1; i < matrix.length; i++) {
            DomElement divRow = createTableRow(matrix[i]);
            if(i % 2 != 0) {
                divRow.setCssStyle(CSS_STYLE_ROW_1);
            }else{
                divRow.setCssStyle(CSS_STYLE_ROW_2);
            }
            table.addChild(divRow);
        }
        return divWrapper.toString();
    }