Please Review My Code
https://code.sololearn.com/cCMIpH0Bxl8v Are there any bugs or syntax errors ?
You could also add a default case to handle invalid inputs. And maybe use an enum instead of a String.
It's the way of practice when you only have got few options. Java time API brings it's own enum for this purpose... search for DayOfWeek ;)
No, we only have the console output.
You need a gui framework to show the image, so it won't work at the code playground anyways :(
i do not see any bugs or anything but i recommend to take it a step further and try to use scanner to recieve input if you are trying to learn how happy coding
Thanks @Tashi! I created a related icon but don't know how to add links to pictures using Java so: https://www.instagram.com/p/BZwUeH-nWfQ/
@Tashi N why use enum instead?
not even a link ?
Tashi N Is it possible? https://www.sololearn.com/Discuss/1949577/?ref=app