• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Shank Ragz
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Saloon Keeper
Posts: 15495
43
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic