Skip to content

Commit 893c321

Browse files
Update README.md
1 parent 7a9e329 commit 893c321

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,26 @@
11
# StringFormatter
22

3+
# install
4+
5+
Add dependeny in pom.xml:
6+
7+
```xml
8+
<dependency>
9+
<groupId>nl.marcelmaatkamp</groupId>
10+
<artifactId>stringformatter</artifactId>
11+
<version>${{ github.ref_name }}</version>
12+
</dependency>
13+
```
14+
15+
## usage
16+
317
```java
418
String result = nl.maatkamp.stringformatter.StringFormatter.of(
519
"{1} {ham} {0} {foo} {1}")
620
.arg(10)
721
.arg(20)
822
.arg("foo", "bar")
923
.arg("ham", "spam")
10-
.format();
24+
.format();
1125
// Output: "20 spam 10 bar 20"
1226
```

0 commit comments

Comments
 (0)