Add a constructor and a greet method to the PersonalizedGreeter class that has been provided for you on the class web site. This class is modeled after the HelloPrinter class of the text.
Each instance of the PersonalizedGreeter greeter class is to be associated with a particular user. The greet method is to print a greeting to the console, tailored to the appropriate user. This greeting is to be a String consisting of the capitalized word "Hello", followed by a comma and a space, followed by the user's name, followed by an exclamation point. So for example, if the user's name is Alice, the greeting should be "Hello, Alice!". The entire greeting should appear on a single line.
The constructor should take a single String as argument. This String is to be interpreted as the user's name. So for example, if the user is named Alice, the constructor should be invoked as
new PersonalizedGreeter("Alice")String represents a correctly spelled user name. Note however that if you define the constructor correctly, the compiler will at least check whether this argument is a String.For this assignment, unlike Assignment 1, you are to follow the usual rules of turning in hard copy results of your testing, as well as hard and soft copies of your code.