It's been a while since I've started programming with Java, although I felt really uncomfortable in the very beginning, it feels better now. Java does include more characters to type than other programming languages but it is a very important languag...
sayantanidey.hashnode.dev3 min read
Nice! This is a good way to overcome this situation.
Another approach would be to pass nextLine() to parseInt():
int year = Integer.parseInt(in.nextLine());
I like it better this way because for me it's less confusing than having a nextLine() lost between the lines.
This is very well explained and will definitely help a lot of people. ππΌ
Jeevika Sirwani
Crisp and clear.π