Have you tried searching here on the forum? There are many examples of code here.
Type: Posts; User: Norm
Have you tried searching here on the forum? There are many examples of code here.
You ask a question with a call to the println() method that will display a message on the console
and read the user's keyed in response with a method of the Scanner class.
Here's some links with info on how to write a method:
Defining Methods (The Java™ Tutorials > Learning the Java Language > Classes and Objects)
Passing Information to a Method or a Constructor (The...
Do you have any specific questions about your assignment?
Please post your code and any questions about problems you are having.