Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Code for the fourth episode in the series: http://youtu.be/gXkOyjFgils
- import java.util.Scanner;
- public class UserInput {
- public static void main(String[]args) {
- Scanner sc = new Scanner(System.in);
- System.out.println("What is your name?");
- String name = sc.next();
- System.out.println("Hello, " + name + ". Welcome to this world!");
- sc.close();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement