Skip to content

Commit

Permalink
simplify output format
Browse files Browse the repository at this point in the history
  • Loading branch information
danielnaber committed Sep 16, 2023
1 parent 3c4b8fe commit b849032
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/main/java/de/danielnaber/jwordsplitter/Example.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,13 @@

import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Scanner;

/**
* A very simple example of how to use jWordSplitter.
*
* @author Daniel Naber
*/
final class Example {

Expand All @@ -49,7 +45,7 @@ public static void main(String[] args) throws IOException {
}
for (String word : words) {
List<String> parts = splitter.splitWord(word);
System.out.println(parts);
System.out.println(String.join(", ", parts));
}
}

Expand Down

0 comments on commit b849032

Please sign in to comment.