ch.bind.philib.lang
Class TableFormatter

java.lang.Object
  extended by ch.bind.philib.lang.TableFormatter

public class TableFormatter
extends Object


Constructor Summary
TableFormatter()
           
 
Method Summary
static String formatTable(Object[][] table)
          Pretty-prints a table.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableFormatter

public TableFormatter()
Method Detail

formatTable

public static String formatTable(Object[][] table)
Pretty-prints a table.

Parameters:
table - The table which must be printed in a friendly way. The first row is considered the 'title' row.
Returns:
The result of the table pretty-printing.


Copyright © 2013. All Rights Reserved.