public void addTableData(final String[] data) {

        if (this.tableHeadings == null) {
            this.tableHeadings = data;
        } else {

            if (this.inlineTable == null) {
                this.inlineTable = new ArrayList<Map<String, String>>();
            }
            final Map<String, String> map = new HashMap<String, String>();
            this.inlineTable.add(map);

            for (int i = 1; i < this.tableHeadings.length; i++) {

                map.put(this.tableHeadings[i].trim(), data[i].trim());
            }
        }

    }
public void addTableData ( final String [ ] data ) { if ( this . tableHeadings == null ) { this . tableHeadings = data ; } else { if ( this . inlineTable == null ) { this . inlineTable = new ArrayList < Map < String , String > > ( ) ; } final Map < String , String > map = new HashMap < String , String > ( ) ; this . inlineTable . add ( map ) ; for ( int i = 1 ; i < this . tableHeadings . length ; i ++ ) { map . put ( this . tableHeadings [ i ] . trim ( ) , data [ i ] . trim ( ) ) ; } } }
@param data the table data