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.