From c696558965932ff6e82eb3808bbb7fb73b8e0f28 Mon Sep 17 00:00:00 2001 From: Leonardo Brandenberger Date: Thu, 11 Nov 2021 11:44:48 +0100 Subject: [PATCH 1/2] Added new UserInfo Method --- src/TextOutput.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/TextOutput.java b/src/TextOutput.java index d3015c2..26b6636 100644 --- a/src/TextOutput.java +++ b/src/TextOutput.java @@ -124,6 +124,15 @@ public class TextOutput { columnWidth = length; } + /** + * Methode um die Benutzerinformationen auszugeben. + * + * @param info Benutzerinformationen + */ + public void UserInfo(String info) { + System.out.println(info); + } + /** * Method to give out the Error "Invalid String". */ From c638d5b8dd8be9579b65c80a5ac066167b8b0073 Mon Sep 17 00:00:00 2001 From: Leonardo Brandenberger Date: Thu, 11 Nov 2021 12:11:36 +0100 Subject: [PATCH 2/2] renamed UserInfo to UserInfo Output added method IndexOutput --- src/TextOutput.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/TextOutput.java b/src/TextOutput.java index 26b6636..cf6c68d 100644 --- a/src/TextOutput.java +++ b/src/TextOutput.java @@ -129,10 +129,16 @@ public class TextOutput { * * @param info Benutzerinformationen */ - public void UserInfo(String info) { + public void UserInfoOutput(String info) { System.out.println(info); } + public void IndexOutput(ArrayList index) { + for (String word : index) { + System.out.println(word); + } + } + /** * Method to give out the Error "Invalid String". */