From 7b0735d68d38560af23161209091b54f487f7347 Mon Sep 17 00:00:00 2001 From: Andrin Fassbind Date: Fri, 8 Oct 2021 09:20:26 +0200 Subject: [PATCH] -System out has been implemented --- src/Language.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Language.java b/src/Language.java index efa8ad4..fd3270a 100644 --- a/src/Language.java +++ b/src/Language.java @@ -29,7 +29,7 @@ public class Language { public void setOutputLanguage(String outputLanguage){ if(checkForValidLanguage(outputLanguage)){ this.outputLanguage=outputLanguage; - checkLanguage("Sprache auf Deutsch geändert","Language changed to english","Đã thay đổi ngôn ngữ sang tiếng Việt"); + System.out.println(checkLanguage("Sprache auf Deutsch geändert","Language changed to english","Đã thay đổi ngôn ngữ sang tiếng Việt")); } } @@ -45,7 +45,7 @@ public class Language { if(outputLanguage.equals(germanShortCut)||outputLanguage.equals(englishShortCut)||outputLanguage.equals(vietnameseShortCut)){ return true; } - checkLanguage("Diese Sprache ist nicht zulässig","This Language is not valid","Ngôn ngữ này không được phép"); + System.out.println(checkLanguage("Diese Sprache ist nicht zulässig","This Language is not valid","Ngôn ngữ này không được phép")); return false; } @@ -55,7 +55,7 @@ public class Language { * @param player beinhaltet den Integer, welcher den Spieler representiert. */ public void outputWinnerText(int player){ - checkLanguage("Spieler "+player+" hat gewonnen! Gut gespiel","Player "+player+" won! Well played genius!","Người chơi "+player+" đã thắng. Làm tốt!"); + System.out.println(checkLanguage("Spieler "+player+" hat gewonnen! Gut gespiel","Player "+player+" won! Well played genius!","Người chơi "+player+" đã thắng. Làm tốt!")); } /** @@ -64,7 +64,7 @@ public class Language { * @param nextPlayer beinhaltet den Integer, welcher den Spieler representiert. */ public void outputNextPlayerText(int nextPlayer){ - checkLanguage("Du bist dran "+ nextPlayer,"It's your turn "+nextPlayer,"Đến lượt bạn "+nextPlayer); + System.out.println(checkLanguage("Du bist dran "+ nextPlayer,"It's your turn "+nextPlayer,"Đến lượt bạn "+nextPlayer)); } /** @@ -72,7 +72,7 @@ public class Language { * Diese Methode informiert den Nutzer über eine Konsolenausgabe, falls ein falsches Feld ausgewählt wird. */ public void outputWrongFieldSelected(){ - checkLanguage("Dieses Feld ist nicht zulässig","This Field is not valid","Trường này không được phép"); + System.out.println(checkLanguage("Dieses Feld ist nicht zulässig","This Field is not valid","Trường này không được phép")); } /**