2023 Java basic intro level so I can understand the code Create a Java Method shoutOutCannedMessage will return type String The | Assignment Collections
Computer Science 2023 Java, (arrays, random)
2023 Java basic intro level so I can understand the code Create a Java Method shoutOutCannedMessage will return type String The | Assignment Collections
Java (basic intro level-so I can understand the code)
Create a Java Method shoutOutCannedMessage() will return type String.
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.
You can initialize your Array or ArrayList with the messages “readysetgo”.
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.
The shoutOutRandomMessage() method will return type String.
The shoutOutRandomMessage() will use several Arrays or an ArrayList to store words.
One data structure that holds a list of words that are subjects, another data structure that holds a list of words that are objects, another that holds a list of verbs, another that holds a list of adverbs, and another that holds a list of adjectives.
You can initialize your data structures with words.
The shoutOutRandomMessage() method will use a random number generator that selects one word from each data structure to form a random message.
The shoutOutRandomMessage() method will return the random message as a String data type.
Random messages will be of the form: Subject – Verb – Adjective – Object – Adverb.
Please document the code for the, shoutOutRandomMessage() method to explain the code for understanding and provide output…
thanks,
We give our students 100% satisfaction with their assignments, which is one of the most important reasons students prefer us to other helpers. Our professional group and planners have more than ten years of rich experience. The only reason is that we have successfully helped more than 100000 students with their assignments on our inception days. Our expert group has more than 2200 professionals in different topics, and that is not all; we get more than 300 jobs every day more than 90% of the assignment get the conversion for payment.