User-defined methods

Assignment Help JAVA Programming
Reference no: EM13649327

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"

Reference no: EM13649327

Questions Cloud

Design a controller which regulates flow : Design a controller which regulates flow and compensate pressure to my desire value in simscape.
Gravitational acceleration at the earths surface : Suppose the space shuttle is in orbit 320km from the Earth's surface, and circles the Earth about once every90.9 minutes. Find the centripetalacceleration of the space shuttle in its orbit. Express your answerin terms of g, the gravitational accel..
Compared to clocks in the observers frame : The length of a spaceship is measured to be exactly 1/3 its restlength. (a) What is the speed parameter β ofthe spaceship relative to the observer's frame?(b) By what integer factor do the spaceship'sclocks run slow, compared to clocks in the observe..
Find the final speed of the carts : The three air cartsshown in the figure have masses, reading from left to right, ofm, 2m, and 4m, respectively. Initially, the cart on theright is at rest, whereas the other two carts are moving to theright with a speed v_0.
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.
Evaluate the magnitude of average resultant force on ball : A 1.5 kg playground ball is moving with a velocity of 3.0 m/s directed 30 degrees below the horizontal just before it strikes a horizontal surface. evaluate the magnitude of the average resultant force on the ball
Terms or metaphors related to a current event : Terms or metaphors related to a current event?
Estimate what is the constant acceleration of the wheel : A rotating wheel requires 5.0 s to complete 50 revolutions. Its angular speed at the end of the 5.0 s interval is 75 rad/s. What is the constant acceleration of the wheel
Discriminating in the hiring process : One of most common fraudulent activities reported by employees about their coworkers is lowering quality standards to cut costs. discriminating in the hiring process.

Reviews

Write a Review

JAVA Programming Questions & Answers

  In this project you need to write a program called

in this project you need to write a program called ecc.javato implement elliptic curve

  Java program the program has a page that shows the users

java program the program has a page that shows the users name and program name. a second jpanel that shows 4 buttons

  Java-s ability to derive new fonts from existing ones

Find out where on your system these font libraries are located. When you do, please specify the operating system and the location (folder/directory) where you found them. Discuss Java's ability to derive new fonts from existing ones.

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Write ijvm program to multiply two hexadecimal numbers

Write the IJVM program that multiplies two (hexadecimal) numbers. The user inputs the hex numbers and the result is printed out. The program then accepts another pair of numbers.

  Write a java program to register students for a college

Project is for designing and developing a College Registration program. Write a Java program to register students for a college

  Presell a limited number of cinema tickets

Write an application to presell a limited number of cinema tickets. each buyer can buy as many as 4 tickets. No more than 100 tickets can be sold. Implement a program called TicketSeller that prompts the user for the desired number of tickets and the..

  Compute the fifties and the remaining amount

Prompt the user for a string input value for the amount in dollars and store it in a variable named input and convert the string to an integer and store it in the variable named amount.

  Morgellons disease is delusional

Why do some scientists say that Morgellons disease is delusional? When there have been fibers extracted from patients that cannot be identified? Isn't that physical proof that something is affecting these people physically?

  Write a java program that prints the numbers from 1 to 125

Write a Java Program that prints the numbers from 1 to 125. But for multiles of three print "Batman" instead of the number and for the multiples of five print "Superman". For instances which are multiples of both three and five "JusticeLeague".

  A game of tic-tac-toe

A game of tic-tac-toe, two players (one the computer) take turns marking an available cell in a 3 X 3 grid (a two dimensional array) with their respective tokens (either and X or an O). When one player has placed three tokens in a horizontal

  Mutant bacterium-synthesize the amino acid tyrosine

Consider a mutant bacterium you have isolated which is unable to synthesize the amino acid tyrosine. You grow it in the presence of a chemical mutagen and isolate a single revertant, which is now able to grow in the absence of tyrosine

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd