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 11 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.