+ 2
After compiling the program i get this Error:
Exception in thread "main" java.util.InputMismatchException at java.util.Scanner.throwfor(Unknown Source) at java.util.Scanner.next(Unknown Source) at java.util.Scanner.nextInt(Unknown Source) at java.util.Scanner.nextInt(Unknown Source) at DisplayCalendar.main(DisplayCalendar.java:8) Can someone please tell me what i'm doing wrong? https://code.sololearn.com/cU2rJJt4Oe3G/?ref=app
8 Answers
+ 3
On SL playground you need to put year and weekday (monday=1) on next way :
2018 ⤾ď¸hit enter
1 âď¸press submit
Or:
2018 1 âď¸press submit (note: 2018 and 1 are separated by space)
thankyou soo much
bt why this exception occurs ??
alredy i did it on cmd same code bt no error found..
why Sl occurs error ??
this is exct questioning to u guys??
+ 13
This error shows if user entered non-Int type of value for year (line 8)
+ 13
Shivani Dakre
Welcome to the SL community đ
Just keep coding and good luck đ
+ 12
On SL playground you need to put year and weekday (monday=1) on next way :
2018 ⤾ď¸hit enter (go to next line)
1 âď¸press submit
Or:
2018 1 âď¸press submit (note: 2018 and 1 are separated by space)
+ 4
thank you soo much LukArToDo to resolve my code problm..actully m new on SL..nice guidance for my code ..đ
+ 3
It seems to work fine now... Right?
+ 2
output will be displaying each month of calender
but it đđđ
0
there is a little problem of..
leap year logic
1900 6
i give this input
but
1900 is not a leap year...
but in your program its shows a leap year...
that all..
very wonderful code i like you code..
fun coding (- _ -)