Question: Description: A variation of the first MultiGreeter assignment, this time working with lists. Assignment: Create a MultiGreeter class with the following capabilities: Feature Signature Requirement

Description:

A variation of the first MultiGreeter assignment, this time working with lists.

Assignment:

Create a MultiGreeter class with the following capabilities:

Feature

Signature

Requirement

Constructors

None needed

Methods

public static List

getGreetings(List names)

Returns a list of greetings of the form Hello, name! where the name is from the list of names provided. The order of names in the greetings will correspond to the order of names provided.

If the provided names list is empty, the list of greetings will contain only the default greeting Hello, World!

If the provided names list is null, the method will throw a NullPointerException.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!