If I want to use a [switch-statement] for this exercise, how should I do?
If I want to use a [switch-statement] for this exercise, how should I do?
Under discussion
Comments (1)
- Popular
- New
- Old
You must be signed in to leave a comment
Ed Maphis
30 May 2019, 22:15
In Java you can 'switch' on String, so switch on the Class name.
https://www.geeksforgeeks.org/string-in-switch-case-in-java/
+1