Advertisement
Guest User

Untitled

a guest
Aug 4th, 2015
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. public static void main(String[] args)
  2. {
  3. String s;
  4. int n;
  5. Scanner cin= new Scanner(System.in);
  6. n=cin.nextInt();
  7. System.out.println("integer inserted");
  8. s=cin.nextLine(); // not able to input String
  9. System.out.println(n+"nString: "+s);
  10.  
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement