Prettytable
A simple Java library for easily displaying tabular data in a visually appealing ASCII table format
Install / Use
/learn @skebir/PrettytableREADME
PrettyTable
PrettyTable is a simple single-class Java library designed to make it quick and easy to represent tabular data in visually appealing ASCII tables, like this:
+-----------+----------+---------------------+-------------+
| Firstname | Lastname | Email | Phone |
+-----------+----------+---------------------+-------------+
| John | Doe | johndoe@nothing.com | +2137999999 |
| Jane | Doe | janedoe@nothin.com | +2137999999 |
+-----------+----------+---------------------+-------------+
The preceding output can be produced using the following code :
public static void main(String[] args) {
PrettyTable table = new PrettyTable("Firstname", "Lastname", "Email", "Phone");
table.addRow("John", "Doe", "johndoe@nothing.com", "+2137999999");
table.addRow("Jane", "Doe", "janedoe@nothin.com", "+2137999999");
System.out.println(table);
}
To use PrettyTable, you need to add the following dependencies to your project :
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
compile 'com.github.skebir:prettytable:v1.0'
}
Related Skills
node-connect
349.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
