GennadyBal
GennadyBal
Reputation Top 5%
Gennady Bal
1 Snippet  (310th place)
Published
1 Channel
Created
2 Channels
Following
Feb 3, 2017
Last Visit
Jan 30, 2017
Registered
39 points  (544th place)
Reputation
Junior Code Generator
Junior Publisher
Junior Trend Maker
Junior Autobiographer
Serious Autobiographer
Master Autobiographer
Junior Snip2Coder
Junior Famous Coder

Recent Snippets See all snippets by GennadyBal

public by GennadyBal created Jan 31, 2017  1644  0  3  1

Using Scanner to Read System Inputs - Java Stdin and Stdout

Using Scanner to Read System Inputs - Java Stdin and Stdout
import java.util.*;

Scanner scanner = new Scanner(System.in);
String myString = scanner.next();
int myInt = scanner.nextInt();
scanner.close();

System.out.println("myString is: " + myString);
System.out.println("myInt is: " + myInt);
;