Skip to content

andydevs69420/pretty-print-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pretty Print Java

🔥 Description

A simple table printer made using Java.

📄 SAMPLE USAGE

public class Test
{
    public static void main(String[] args) throws InvalidTableError
    {

        String[] model  = {"Name","Age","Address","Contact no"};

        String[][] data = {
            {"Billy Joe"      , "21"    , "Barangay Iponan"         , "0935XXXXXXX"},
            {"Andy"           , "69420" , "Igpit Youngsville"       , "0926XXXXXXX"},
            {"Marielle"       , "22"    , "Initao Misamis Oriental" , "0967XXXXXXX"},
            {"Philipp Andrew" , "23"    , "Igpit Youngsville"       , "0945XXXXXXX"}
        };

        PrettyPrint pp = new PrettyPrint(model, data, Alignment.RIGHT);
        
        System.out.println("RIGHT align:");
        System.out.println(pp);

        // pp.pprint();

    }
}

📷 SAMPLE SCREENSHOTS

screenshot-1 screenshot-2 screenshot-3

Releases

No releases published

Packages

No packages published

Languages