+ 3
Try and catch question please see code
im trying to get the program to throw to catch if the String is not equal but its not working the program executes normally without exceptions any help please z is scanner try{ if(z.equalsIgnoreCase("Monday")|| z.equalsIgnoreCase("Tuesday")|| z.equalsIgnoreCase("Wednesday"));} catch(Exception e){t("Please enter the a day");}
3 Respostas
+ 7
Throw keyword not found ;)
Example:
https://code.sololearn.com/cQVLlvKiWbiz/?ref=app
+ 7
https://code.sololearn.com/cxmK6w19r38p/?ref=app
0
im not getting it 😕 is (Exception e) my problem?