Created
June 23, 2020 17:09
-
-
Save LaurentiuGabriel/581a813f17cadb9bbbbba6f78aa176ec to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| import java.util.Scanner; | |
| public class App { | |
| public static void main(String[] args) { | |
| Scanner scanner = new Scanner(System.in); | |
| System.out.println("You need to type something: "); | |
| String input = scanner.nextLine(); | |
| System.out.println("User has typed: " + input); | |
| System.out.println("You need to type integer: "); | |
| Integer number = scanner.nextInt(); | |
| System.out.println("User has typed the following number: " + number); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment