Guest User

Untitled

a guest
Jan 22nd, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.42 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. class ScannerTest
  4. {
  5.     public static void main (String[] Args)
  6.     {
  7.         Scanner Scanner = new Scanner(System.in);
  8.        
  9.         int IntegerIn;
  10.         String StringIn;
  11.        
  12.         System.out.println("Gib einen Integer ein:");
  13.         IntegerIn = Scanner.nextInt();
  14.  
  15.         System.out.println("Gib einen String ein:");
  16.         StringIn = Scanner.nextLine();
  17.        
  18.         System.out.println("Int:"+IntegerIn+" String:"+StringIn);
  19.     }
  20. }
Add Comment
Please, Sign In to add comment