Hai Manoj, no, u cannot use string values in switch() construct coz the rule for switch() is tht the variable u pass as argument to switch() must be compatible to int i.e. only byte, char, short and int should be passed as argument to switch() and long, float , double and any object reference should not be passed. vineela
posted 13 years ago
Note that you _can_ use a char, so in your example you could test for 'A', only you'd use single iso double quotes.
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads