From 5f21856c3538d7dabc72d88a4edef6a55d393196 Mon Sep 17 00:00:00 2001 From: Tobias Gladhorn <3019210@stud.hs-mannheim.de> Date: Thu, 9 Jan 2025 09:27:36 +0100 Subject: [PATCH] =?UTF-8?q?w=C3=B6rterspiel/Format.java=20gel=C3=B6scht?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wörterspiel/Format.java | 44 ----------------------------------------- 1 file changed, 44 deletions(-) delete mode 100644 wörterspiel/Format.java diff --git a/wörterspiel/Format.java b/wörterspiel/Format.java deleted file mode 100644 index 1707481..0000000 --- a/wörterspiel/Format.java +++ /dev/null @@ -1,44 +0,0 @@ - -public class Format { - - public static String padword(String word, int pad) { - - String result = ">>"+word; - if (result.length() >= pad-2) { - result += "<<"; - } - else { - while(result.length() <= pad-2) { - result += "-"; - } - result += "<<"; - } - return result; - } - - public static String midpadword(String word, int pad) { - - String result = word; - if (result.length() >= pad-4) { - result =">>" + result + "<<"; - } - else { - while(result.length() <= pad-4) { - result = "-" + result + "-"; - } - result =">>" + result + "<<"; - } - return result; - } - - public static void pad(int input) { - - String result = "#"; - - while(result.length() < input) { - result += "#"; - } - System.out.println(result); - - } -} \ No newline at end of file