Review and Correct what is wrong HELP
Review and Correct what is wrong HELP
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. For those of you that are more advanced with your Java skills, you could use a HashMap for the data structure. You can load this data structure with 10 messages of your choosing. For example, one message could be “I need Java!” You can initialize your Array or ArrayList with the messages or have the user enter the messages. The choice is yours. 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
My code is down however cannot get it to run correctly with the requirements above. attached is my code in NetBeams Need a review and correction. This is what I was trying to accomplished with the shoutbox
What do you consider the Best? Enjoy! (This is the beginning statement)
Best electric car: Tesla or Bolt? (statement would appear then user selects one of the options; once selected next statement appears)
Best for computing:PC or Mac?
Best tablet: Samsung Galaxy Tab or iPad?
Best cell phone: Galaxy S 8 Plus or iPhone 7 Plus?
Best 2 in 1: Surface Pro or iPad Pro?
Best designer bag: Tumi Bag or Coach Bag?
Best Sneaker: Nike or Converse All Star?
Best Gym: Planet Fitness or Gold Gym?
Best mode of transportation: Public or Drive Yourself?
Best City:New York or Atlanta? (this is the last statement once complete next question is below)
Wish to go again? Y/N
If N = “Thank you for giving your best!”
If Y = “Ok, try again” (statements repeats)
(The user get to type in their answer) must include shoutbox)
CODE on Attached file
"You need a similar assignment done from scratch? Our qualified writers will help you with a guaranteed AI-free & plagiarism-free A+ quality paper, Confidentiality, Timely delivery & Livechat/phone Support.
Discount Code: CIPD30
Click ORDER NOW..


