Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Main {
- public static void main(String[] args) {
- Scanner input = new Scanner(System.in);
- System.out.println("Please input your number: ");
- int myVariable = input.nextInt();
- System.out.println("My variable is: " + myVariable);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment