This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Switch Prog. ,Now In Arrays..??? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Switch Prog. ,Now In Arrays..???" Watch "Switch Prog. ,Now In Arrays..???" New topic
Author

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

Shank Ragz
Greenhorn

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 wants....it also calculates how much the total transaction is, but my doubt is....can i write the same program using arrays...am 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
Bartender

Joined: Aug 16, 2005
Posts: 12928
    
    3

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 7 API documentation
Scala Notes - My blog about Scala
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Switch Prog. ,Now In Arrays..???
 
Similar Threads
Error while trying to add an object to array list
Loop for console input....
I am able to display the file information, but I am having problem displaying the employee details.
Java problems, accumulating totals
almost there!