import javax.swing.*;

public class ShowGreeting {

   public static void main(String[] args) {
     // Get the user's name
     String userName = JOptionPane.showInputDialog("Enter your name");

     // Create a NameInStars object that stores the user's name.
     NameInStars you = new NameInStars(userName);

     // Display your name in stars three times
     JOptionPane.showMessageDialog(null, you.surroundNameInStars());
   }
}

