You can compare strings with '=' because it's overloaded in the String class. So instead of a switch case, you can just use a series of if-else blocks.
1 Like
You can compare strings with '=' because it's overloaded in the String class. So instead of a switch case, you can just use a series of if-else blocks.