switch (choice) {
case 1 : statement 1;
..
..
statement n;
break;
case 2 : statement 1; ..
..
statement n;
break;
default : statement 1; ..
..
statement n;
break;
}
Regards, Kamran
--
Arnnie Martinez <[EMAIL PROTECTED]> wrote:
Can anyone tell me how to use the select case statement in java?
In VB is
Select case choice
case 1:
case 2:
end select
Java ???
---------------------------------
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
[Non-text portions of this message have been removed]
------------------------ Yahoo! Groups Sponsor --------------------~-->
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/17folB/TM
--------------------------------------------------------------------~->
---------------------------------------------------------------------
Home : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
Post : [EMAIL PROTECTED]
Subscribe : [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
---------------------------------------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/active-server-pages/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/