From 94fa99d5b22ec150ba154f895486565c5f62a4d5 Mon Sep 17 00:00:00 2001 From: Leonardo Brandenberger Date: Thu, 11 Nov 2021 20:20:35 +0100 Subject: [PATCH] fix in TextOutput --- src/TextOutput.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/TextOutput.java b/src/TextOutput.java index 468bc31..06f863b 100644 --- a/src/TextOutput.java +++ b/src/TextOutput.java @@ -64,9 +64,11 @@ public class TextOutput { System.out.print(" "); currentLength = word.length() + 1; } + else { + System.out.println(); + } } } - System.out.println(); } }