daily pastebin goal
25%
SHARE
TWEET

greeting by name

a guest Oct 17th, 2017 58 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top