Create a MultiGreeter class with the following capabilities:
Feature
Signature
Requirement
Constructors
MultiGreeter()
No-argument constructor; creates a MultiGreeter withmaxGreetings = 1
MultiGreeter(int maxGreetings)
Creates a greeter that can hold up to maxGreetings greetingstrings.
Precondition: 0 < maxGreetings <= 255
Methods
getMaxGreetings() : int
Returns the value maxGreetings, the maximum number of greetingsthis Greeter can hold
getNumGreetings(): int
Returns the number of greetings added to this MultiGreeter.
addGreeting(String greeting) : boolean
If Greeter already has maxGreetings added, the greeting will notbe added and the method will return false; otherwise themethod will add the given greeting to its collection of greetingsand return true.
getGreetings(): String []
Returns an array containing the greeting strings added to thisGreeter in no particular order
PayPal Gateway not configured
PayPal Gateway not configured