943,669 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 627
  • Java RSS
You are currently viewing page 2 of this multi-page discussion thread; Jump to the first page
Mar 23rd, 2009
0

Re: how do i make this program?

and how do i make my case 'A' and 'B'?
i suck at this
Reputation Points: 10
Solved Threads: 0
Newbie Poster
weinyeong is offline Offline
6 posts
since Mar 2009
Mar 23rd, 2009
0

Re: how do i make this program?

The same way that you have made the original menu, you can make the sub menus. So that when the menu choice A is selected you show the sub-menus for A and same for B.
Reputation Points: 485
Solved Threads: 89
Posting Shark
verruckt24 is offline Offline
944 posts
since Nov 2008
Mar 23rd, 2009
0

Re: how do i make this program?

but if you do that, don't use:
Java Syntax (Toggle Plain Text)
  1. switch(choice){
  2. case 1: //your code
  3. break;
  4. case 2: // your code
  5. break;
  6. case 3: // your code
  7. break;
  8. }
simply, because if you enter 'A', 'B' or 'C', the switch will never have
the values '1' '2' or '3'.
Reputation Points: 919
Solved Threads: 354
Nearly a Posting Maven
stultuske is online now Online
2,487 posts
since Jan 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: 5 digit palindrome program
Next Thread in Java Forum Timeline: combo box containg check box as its elements in java





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC