Can someone can code a switch case statement. Using string and go to statement? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 3

Can someone can code a switch case statement. Using string and go to statement?

notice me if someone can

24th Oct 2019, 9:45 AM
kibor
2 Answers
+ 5
You can use a map to map strings to integer values and use that to work with a switch case construct.
25th Oct 2019, 3:23 AM
Hatsy Rei
Hatsy Rei - avatar
+ 1
We can but it's work to do first. We are not here to do your work or assignment. We can only help to solve your problem.
24th Oct 2019, 12:43 PM
A͢J
A͢J - avatar