You will create the shoutbox class for your virtual world


User-Defined Methods

You will create the ShoutBox class for your Virtual World. Your ShoutBox class will have a shoutOutCannedMessage() method that returns a String type. The shoutOutCannedMessage will use an Array or an ArrayList to store 10 messages of type String. You can load this data structure with 10 messages of your choosing. You can initialize your Array or ArrayList with the messages. The shoutOutCannedMessage() will loop through the data structure to first display all canned messages and allow the user to select one. The shoutOutCannedMessage() will return the selected message String. Take a screenshot to verify that the selected message String is displayed successfully. Cut and paste the screenshot into a Word document and attach this document to your submission.

10 messages to use:

"I like Java Programming."
"Java programming is somewhat fun."
"Java is easier to learn than C ++."
"Java can be Fun."
"I like learning new things."
"I love Java the coffee."
"Starbucks sells terrible Java."
"Only five more weeks to go."
"My daughter wants to learn Java."
"The last statement in the list"

Solution Preview :

Prepared by a verified Expert
JAVA Programming: You will create the shoutbox class for your virtual world
Reference No:- TGS0902950

Now Priced at $45 (50% Discount)

Recommended (98%)

Rated (4.3/5)