Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- class ScannerTest
- {
- public static void main (String[] Args)
- {
- Scanner Scanner = new Scanner(System.in);
- int IntegerIn;
- String StringIn;
- System.out.println("Gib einen Integer ein:");
- IntegerIn = Scanner.nextInt();
- System.out.println("Gib einen String ein:");
- StringIn = Scanner.nextLine();
- System.out.println("Int:"+IntegerIn+" String:"+StringIn);
- }
- }
Add Comment
Please, Sign In to add comment