2012-07-27 106 views
2

我已经使用表番石榴为我的3D散列实现,我只想知道如何迭代和取值。我有以下我的表,现在..我只是要遍历这个和打印的行,列的值,值遍历表番石榴

A1000|B100|8 
    A104|B10|6 

回答

7
for (Table.Cell<String, String, Integer> cell : table.cellSet()) { 
    System.out.println(cell.getRowKey 
         + "|" 
         + cell.getColumnKey() 
         + "|" 
         + cell.getValue()); 
} 

The javadoc会告诉你,以及链接user guide article

+0

感谢您的帮助。 – NandaKumar 2012-07-27 22:10:13