Uebung/Übung 2/src/Übung.java

19 lines
451 B
Java
Raw Normal View History

2024-04-08 10:45:29 +02:00
import java.io.*;
2024-04-08 10:14:35 +02:00
public class Übung {
2024-04-08 10:45:29 +02:00
public static void main(String[] args) throws Exception {
Console cons = System.console();
System.out.println("Text eingeben: ");
String text = cons.readLine();
System.out.println("Gelesener Text: " + text);
System.out.println("Text eingeben: ");
String text2 = cons.readLine();
for(int i = 0; i<text2.length();i++) {
}
// char [] ca = Console.readCharArray();
2024-04-08 10:14:35 +02:00
2024-04-08 10:45:29 +02:00
}
2024-04-08 10:14:35 +02:00
}