mirror of
https://github.com/DerTyp7/lf05-java.git
synced 2025-10-30 04:47:13 +01:00
Initial commit
This commit is contained in:
17
src/eingabeUndAusgabe/Benutzer.java
Normal file
17
src/eingabeUndAusgabe/Benutzer.java
Normal file
@@ -0,0 +1,17 @@
|
||||
package eingabeUndAusgabe;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStreamReader;
|
||||
|
||||
public class Benutzer {
|
||||
public static void main(String[] args) throws IOException {
|
||||
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
|
||||
|
||||
System.out.println("Enter your name:");
|
||||
|
||||
String text = br.readLine();
|
||||
System.out.println("Hallo " + text);
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user