Remove line 12
Change line 15 to -
Also 🌠Ankur🌠 do not create more than one instance of scanner class, it can be avoided almost 90% of time. Just a single instance is more than enough for pretty much all the basic programs we write.
Edit: It is allowed or not is secondry, I'm saying it's unnecessary. Hope you get the difference.