private List<List<String>> tableOverallList;
i have a series of list in this list. it contains 8 values in each list. i need to place it in the table created. i would like to have 2 Rows with 8 columns. for the 1st Row i have this list.
String[] tableTitleList = {" Title", " (Re)set", " Obs", " Mean", " Std.Dev", " Min", " Max", " Unit"};
List<String> tabTitleList = Arrays.asList(tableTitleList);
help me to place the 1st list of values inside the List tableOverallList
in the 2nd Row. i will try managing with the rest of the list.
PdfPTable table = new PdfPTable(3); // 3 columns.
PdfPCell cell1 = new PdfPCell(new Paragraph("Cell 1"));
PdfPCell cell2 = new PdfPCell(new Paragraph("Cell 2"));
PdfPCell cell3 = new PdfPCell(new Paragraph("Cell 3"));
PdfPCell cell3 = new PdfPCell(new Paragraph("Cell 4"));
PdfPCell cell3 = new PdfPCell(new Paragraph("Cell 5"));
PdfPCell cell3 = new PdfPCell(new Paragraph("Cell 6"));
PdfPCell cell3 = new PdfPCell(new Paragraph("Cell 7"));
PdfPCell cell3 = new PdfPCell(new Paragraph("Cell 8"));
table.addCell(cell1);
table.addCell(cell2);
table.addCell(cell3);
table.addCell(cell4);
table.addCell(cell5);
table.addCell(cell6);
table.addCell(cell7);
table.addCell(cell8);
document.add(table);