Xadez

Say Hello

Nov 27th, 2019
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.25 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class Tutorial {
  4.     public static void main (String[] args) {
  5.         Scanner in = new Scanner(System.in);
  6.         String name = in.nextLine();
  7.         System.out.println("Hello, " +  name + "!");
  8.  
  9.     }
  10.  
  11. }
Advertisement
Add Comment
Please, Sign In to add comment