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