File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Set-up Menu???

 
B Taylor
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 148
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
B Taylor
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic