Tag Archives: java scanner class example

Java Scanner Class – How to import it and use it in Java

Scanner is a class which is present in java.util package. It is used for receiving input from user. It takes the input from user into tokens. We convert those tokens into required types using nextXYZ() methods. (Here XYZ can be int, long etc). How to take input from user in Java using Scanner class? Hereā€¦ Read More »