Write a java program that creates the shoutbox class for


Write a Java program that creates 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.

Load this data structure with 10 messages of your choosing. For example, one message could be "I need Java!"

Initialize the 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.

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Write a java program that creates the shoutbox class for
Reference No:- TGS01495036

Now Priced at $30 (50% Discount)

Recommended (94%)

Rated (4.6/5)