テーブルの最初の列に数値を入力し、2 番目の列に配列から特定のデータを入力する必要があります。
したがって、次のようになります。
1 | データ1
2 | データ2
3 | データ3
このデータを追加する最良の方法は何ですか。
通常、あなたは次のようなことをします:
 Table table = new Table(3); 
 table.setWidth(100);           
 table.setDefaultVerticalAlignment(Element.ALIGN_TOP);           
 table.setCellsFitPage(true);            
 table.setPadding(2);            
 table.setSpacing(0);              
 for (int i = 1; i <= 6; i++) {            
 Cell cell = new Cell("Data " + i);            
 table.addCell(cell); }
次に、次のようなものを取得します。
データ 1 | データ 2 | データ 3
データ 4 | データ 5 | データ 6
選択したセルを埋める特定の方法はありますか、それとも間違っていると思いますか?