Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-23-2007, 09:22 PM
Member
 
Join Date: Jul 2007
Posts: 39
Rep Power: 0
christina is on a distinguished road
Default Can I set a range in case statement?
How to put a range in the case?
For example:
Code:
case 1 to 4: 
break;
case 5 to 7:
break;
how can I do that?
is it possible?
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 07-25-2007, 09:41 PM
Member
 
Join Date: Jul 2007
Posts: 55
Rep Power: 0
Seemster is on a distinguished road
Default
you wouldn't want to use the case statement for this. a simple if statement would work.
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Case Based Reasoning kbyrne Advanced Java 4 04-12-2008 09:51 PM
problem with operator in case jimJohnson New To Java 2 03-21-2008 09:22 PM
String Title case bugger New To Java 4 01-28-2008 06:06 PM
What is the best way to represent range of number... zoe New To Java 1 08-07-2007 07:13 AM
Statement or Prepared Statement ? paty Database 3 08-01-2007 05:45 PM


All times are GMT +2. The time now is 12:25 PM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org