From 77c181feed8b4c00c8313a9b53fec21140e7119f Mon Sep 17 00:00:00 2001 From: fdai7487 Date: Fri, 10 Feb 2023 10:35:00 +0100 Subject: [PATCH] refactoring: Logic is outsourced to the method --- src/digital/technik/DigitalTechnik7.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/digital/technik/DigitalTechnik7.java b/src/digital/technik/DigitalTechnik7.java index 45f0daf..f8f4012 100644 --- a/src/digital/technik/DigitalTechnik7.java +++ b/src/digital/technik/DigitalTechnik7.java @@ -4,7 +4,10 @@ import java.util.Scanner; public class DigitalTechnik7 { - public static void main(String[] args) { + public DigitalTechnik7() { + } + + void start() { Scanner sc = new Scanner(System.in); System.out.println("Willkommen"); @@ -36,6 +39,5 @@ public class DigitalTechnik7 { } else { System.out.println("Ungültige Eingabe!"); } - } }