TextTableFormatter { public String format() { List<List<String>> lines = Lists.newArrayList(); return TableFormatter.format(table.withLineNumbers().toCells()); } private  TextTableFormatter(); String format(); String toCSV(); static TextTableFormatter1 forHeadings(String col0); static TextTableFormatter2 forHeadings(String col0, String col1); static TextTableFormatter3 forHeadings(String col0, String col1, String col2); static TextTableFormatter4 forHeadings(String col0, String col1, String col2, String col3); static TextTableFormatter5 forHeadings(String col0, String col1, String col2, String col3, String col4); static TextTableFormatter6 forHeadings(String col0, String col1, String col2, String col3, String col4, String col5); static TextTableFormatter7 forHeadings(String col0, String col1, String col2, String col3, String col4, String col5, String col6);  }
@Test public void testObjectFormatting() throws Exception { Object val = 10000; assertEquals("10,000", String.format("%,d", val)); }