lorenzo 2024-04-08 11:55:53 +02:00
parent ca0be39ee7
commit e1e60cc3a5
1 changed files with 3 additions and 3 deletions

View File

@ -2,18 +2,18 @@ package inputOutput;
public class DemoConsole {
public static void main(String[] args) throws Exception {
System.out.println("Text eingeben: ");
String text = DemoConsole.readString();
String text = Console.readString();
System.out.println("Gelesener Text: " + text);
System.out.println("Text eingeben: ");
char [] ca = DemoConsole.readCharArray();
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 = DemoConsole.readBoolean();
boolean b = Console.readBoolean();
System.out.println("Gelesener Wert: " + b);
}
}