Advertisement
ralphdc09

itf106.pr.wk02.number03

Jul 30th, 2021
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.44 KB | None | 0 0
  1. package pr.wk02;
  2.  
  3. import java.util.Scanner;
  4.  
  5. public class number03 {
  6.     public static void main(String[] args) {
  7.         Scanner rdc = new Scanner(System.in);
  8.  
  9.         String name;
  10.         String nameUppercase;
  11.  
  12.         System.out.print("Please enter your name: ");
  13.         name = rdc.nextLine();
  14.  
  15.         nameUppercase = name.toUpperCase();
  16.  
  17.         System.out.println("Hello, " + nameUppercase + ",it's nice to meet you!");
  18.     }
  19. }
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement