The Artima Developer Community
Sponsored Link

Java Answers Forum
Menu Driven Program

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
E D

Posts: 1
Nickname: manu7
Registered: Mar, 2007

Menu Driven Program Posted: Mar 23, 2007 11:45 AM
Reply to this message Reply
Advertisement
First of all, to explain the idea behind my question ill explain that i want to create a text-based program. I would like to create a main menu. I talked to my teacher about this, and he said i should use the switch statement. Now, i would like to know how to use this statement to open another class.

Like for exmaple, main menu gives you the following options(inventory system):

1) View Engines

2) View Life jackets

3) Add a new item

....

What must be written in the case 1, case 2, to bring me to these other classes..

I hope this is clear

Thanks in advance!!

Topic: Menu Driven Program Previous Topic   Next Topic Topic: Estimate cost of Java Programmers

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use