For my final project I have to develop a functional flowchart and write a menu-driven Java program, using control constructs and user-defined functions.

My question is, what the heck is a menu-driven program?

Recommended Answers

All 3 Replies

Its like a main menu in a movie.

Scanner s = new Scanner(;
System.out.print("Would you like to \n 1.Eat\n 2.Poop\n 3.or sleep"); // This is the menu-driven part
String input = s.nextLine();

switch(input) //you can only switch strings in JDK7
    //code goes here

ok got it.

If your problem is solved, mark it as solved.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.