Write a method in JAVA that does this: Presents the user with a header stating this...

80.2K

Verified Solution

Question

Programming

Write a method in JAVA that does this:

Presents the user with a header stating this is for assignment:Lab, and the names Bob and Bill

Present the user with a menu to run a random method(just makethis a dummy method) , another random method method,(just make thisa dummy method) or another dummy method (just make this a dummymethod)

Repeat the menu until the user enters -1.

Answer & Explanation Solved by verified expert
4.3 Ratings (777 Votes)
Below is your code import javautilScanner public class Assignment public static void mainString args printing header SystemoutprintlnThis is for assignment Lab Names Bob and Bill intializing Scanner to take user input Scanner sc new ScannerSystemin Initializing variable to get user choice int choice 0 loop to run till user selects Exit while choice 1 printing menu SystemoutprintlnSelect a method to run Systemoutprintln1    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students