You can't use Strings in switch statements. AFAIK, only ints and chars are allowed

David

Hey everyone,
This is more of a Java question than a Struts question, I hope you all don't
mind.


I'm just wondering if there is any way to use a String for a switch
statement, or if you are restricted to the true primitive types.
I haven't found a way, but it seems like something that lots of people would
want that wouldn't be hard for the Java developers to allow for.
Wouldn't you agree?



Keith Kamholz Programming and Architecture Moog Inc.

Phone: (716) 687-7001



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to