Try and catch question please see code | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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");}

9th Sep 2017, 11:57 AM
D_Stark
D_Stark - avatar
3 Respostas
+ 7
Throw keyword not found ;) Example: https://code.sololearn.com/cQVLlvKiWbiz/?ref=app
9th Sep 2017, 12:03 PM
Tashi N
Tashi N - avatar
+ 7
https://code.sololearn.com/cxmK6w19r38p/?ref=app
9th Sep 2017, 12:18 PM
GAWEN STEASY
GAWEN STEASY - avatar
0
im not getting it šŸ˜• is (Exception e) my problem?
9th Sep 2017, 1:03 PM
D_Stark
D_Stark - avatar