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?

Re: Menu-driven java program 80 80

Its like a main menu in a movie.
ex.

Scanner s = new Scanner(System.in);
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
}
Re: Menu-driven java program 80 80

ok got it.
thanks

Re: Menu-driven java program 80 80

If your problem is solved, mark it as solved.

Be a part of the DaniWeb community

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