Skip to content

JamesZBL/console-util

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Console Util For Better Printing

Build Status LICENSE Maven central GitHub release

How to use

Maven

<dependency>
    <groupId>com.github.jameszbl</groupId>
    <artifactId>console-util</artifactId>
    <version>1.0.2</version>
</dependency>

Gradle

compile group: 'com.github.jameszbl', name: 'console-util', version: '1.0.2'

Table

Table table = new Table.Builder().
            // 列名
            columns(new String[]{"班级", "学号", "姓名", "性别"}).
            // 单元格
            cells(new String[][]{
                    {"软件1班", "123", "李明", "女"},
                    {"软件2", "13533", "王3名", "男"},
                    {"软件3", "21212333", "刘文", "女"},
                    {"软件3", "212", "刘翰", "女"}}).
            // 列宽
            columnLength(10).
            build();
    System.out.println(table);

LICENSE

Apache License 2.0

About

命令行字符输出的工具集,目前的功能有表格输出

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages