A scanner class is in java. util package, it is used for accepting the input of the primitive types like int, double, etc. and strings. It is the easiest way to read input in a java program.

To learn more about how to take input refer the given link.
https://java4school.com/input-methods-in-java

For programs related to scanner class refer the given link
https://java4school.com/string-programconvert-to-palindrome-words

For programs related to scanner class refer the given link
https://java4school.com/niven-perfect

LEAVE A REPLY

Please enter your comment!
Please enter your name here