Switch case on String

by Abhi » Thu, 24 Sep 2009 22:57:18 GMT


Sponsored Links
 Can I do a switch(String), case (compare with other string) and how?

I am trying to compare string results and perform actions...

Thanks,

Abhi
--~--~---------~--~----~------------~-------~--~----~



Switch case on String

by Felipe Silveira » Fri, 25 Sep 2009 00:50:59 GMT


 No, you can't.

In Java we don't have switch with Strings.

Regards,

Felipe Silveira






-- 
Felipe Silveira
Engenharia da Computao
Universidade Federal de Itajub
 http://www.felipesilveira.com.br 
MSN: felipeuni...@hotmail.com
Skype: fsunifei
-------------------------------------------------

--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Switch case on String

by Abhi » Fri, 25 Sep 2009 01:07:52 GMT


 Ok. Thanks Felipe. I just figured that out.

Regards,

Abhi




--~--~---------~--~----~------------~-------~--~----~