GeeCON Prague 2014*
The moose likes Beginning Java and the fly likes Set-up Menu??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Set-up Menu??? " Watch "Set-up Menu??? " New topic
Author

Set-up Menu???

B Taylor
Greenhorn

Joined: Sep 04, 2002
Posts: 5
Hi everyone,
I have created separate four class:
and I want to setup a main menu, so if a user press 1, then it goes to the Annulus Class, if a user press 2, it goes to Diameters Class and if a user press 3, it goes to the Circumference class.
I've spent all day trying to figure it out how I can set up a menu. I've attach my work what I've done so far. I'm not sure how I can finish off this? Can you help me please?
Many thanks!

[ November 04, 2002: Message edited by: B Taylor ]
Sayed Ibrahim Hashimi
Ranch Hand

Joined: May 17, 2001
Posts: 148
Hi, what do you mean "goes to.."? If the user presses 1(or 2...) exactly what are you expecting to happen?
The other thing explain the classes a little better, like are they related? Do they share the same interface, etc. If we have a better idea of your problem, then we can help better.


SCJP 1.4<br /><a href="http://www.cise.ufl.edu/~sih" target="_blank" rel="nofollow">www.cise.ufl.edu/~sih</a>
B Taylor
Greenhorn

Joined: Sep 04, 2002
Posts: 5
To explain further, with the other three classes are different calculation.
First class performs the area of an annulus if the inside and outside radii of the annulus are given
Second class performs the area of an annulus if the inside and outside diameters of the annulus are given

Third class performs the area of an annulus if the inside and outside circumferences of the annulus are given
The three class is like a program, and that's what I am looking for, when a user press 1, it takes us to the first class to perform the radii calculation.
An example of my first class is

Hope this makes sense!
Thanks
[ November 04, 2002: Message edited by: B Taylor ]
[ November 04, 2002: Message edited by: B Taylor ]
 
GeeCON Prague 2014
 
subject: Set-up Menu???