File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Switch Prog. ,Now In Arrays..??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Switch Prog. ,Now In Arrays..???" Watch "Switch Prog. ,Now In Arrays..???" New topic

Switch Prog. ,Now In Arrays..???

Shank Ragz

Joined: Jul 09, 2008
Posts: 5
Hi experts, can you please help me in this program...

this program is to display the menu card and lets the user select the options he also calculates how much the total transaction is, but my doubt is....can i write the same program using trying this program only in java console....and also no applets also...just Arrays....please help me with the code...

Code Using Switch Cases....

Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 15084

Welcome to JavaRanch.

Sure you can write the program using arrays. If you don't know how arrays work in Java, then have a look at the Arrays lesson in Sun's Java Tutorial.

The program above is not an applet, it's a standalone program. So there's nothing with applets there that you'll have to remove.

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
I agree. Here's the link:
subject: Switch Prog. ,Now In Arrays..???
It's not a secret anymore!