Created
February 15, 2019 08:40
-
-
Save karellism/b32fc835456850996d67cd1556c3c49e to your computer and use it in GitHub Desktop.
How to get the user input using Scanner. Here the input is an integer that will be stored in int variable i.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Scanner sc = new Scanner(System.in); | |
int i = sc.nextInt(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment