From 909f9847545e5f491693c01c043f896a3d987b89 Mon Sep 17 00:00:00 2001 From: Maximilian Date: Tue, 9 Apr 2024 09:09:20 +0200 Subject: [PATCH] Formatierung --- src/DemoConsole.java | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/DemoConsole.java b/src/DemoConsole.java index d634274..9ccfa27 100644 --- a/src/DemoConsole.java +++ b/src/DemoConsole.java @@ -1,18 +1,18 @@ public class DemoConsole { - public static void main(String[] args) throws Exception { - System.out.println("Text eingeben: "); - String text = Console.readString(); - System.out.println("Gelesener Text: " + text); + public static void main(String[] args) throws Exception { + System.out.println("Text eingeben: "); + String text = Console.readString(); + System.out.println("Gelesener Text: " + text); - System.out.println("Text eingeben: "); - char [] ca = Console.readCharArray(); - System.out.println("Gelesenes char-Feld: "); - for(char celement: ca) - System.out.print(celement); - System.out.println(); + System.out.println("Text eingeben: "); + char[] ca = Console.readCharArray(); + System.out.println("Gelesenes char-Feld: "); + for (char celement : ca) + System.out.print(celement); + System.out.println(); - System.out.println("Boolean eingeben: "); - boolean b = Console.readBoolean(); - System.out.println("Gelesener Wert: " + b); - } + System.out.println("Boolean eingeben: "); + boolean b = Console.readBoolean(); + System.out.println("Gelesener Wert: " + b); + } }