Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main(String[] args)
- {
- String s;
- int n;
- Scanner cin= new Scanner(System.in);
- n=cin.nextInt();
- System.out.println("integer inserted");
- s=cin.nextLine(); // not able to input String
- System.out.println(n+"nString: "+s);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement