From c638d5b8dd8be9579b65c80a5ac066167b8b0073 Mon Sep 17 00:00:00 2001 From: Leonardo Brandenberger Date: Thu, 11 Nov 2021 12:11:36 +0100 Subject: [PATCH] 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". */