SHARE
TWEET

greeting by name

a guest Oct 17th, 2017 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import java.util.Scanner;
  2.  
  3. public class test {
  4.     public static void main(String[] args) {
  5.         Scanner console = new Scanner(System.in);
  6.         String name = console.nextLine();
  7.         System.out.printf("Hello, %s!",name);
  8.     }
  9. }
RAW Paste Data
Top