Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main(String... args){
- Scanner sc = new Scanner(System.in); //Scanner erstellen
- String eingabe = null; // Variable anlegen um Eingabe zu speichern
- System.out.println("Gebe was ein: ");
- eingabe = sc.nextLine(); //eingabe über Scannerobjekt in Variable speichern
- System.out.println("Deine Eingabe ist: " + eingabe); //ausgeben
- sc.close();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement