Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 567 Bytes

README.md

File metadata and controls

30 lines (24 loc) · 567 Bytes

Demo Library

This project is a library for padding Strings in Java.


WARNING

Don't use this in production. It was created for demo purposes only.


How to use it:

Add the following dependency:

<dependency>
    <groupId>com.thegreatapi.demolibrary</groupId>
    <artifactId>demolibrary</artifactId>
    <version>${VERSION}</version>
</dependency>

The folling code

String paddedString = this.stringPadder.padLeft("My String", 30, '-');
System.out.println(paddedString);

Will print:

---------------------My String