Is there any input function in Java?? | SoloLearn: Learn to code for FREE!


Is there any input function in Java??

Input in java by input function...

6/3/2020 6:57:15 AM

The Black Hat 🇧🇩

3 Answers

New Answer


Java Scanner class allows the user to take input from the console. It belongs to java. util package. It is used to read the input of primitive types like int, double, long, short, float, and byte.


There're public *Methods* in the class java.util.Scanner Initialize the class and you will have access to inputs to almost all primary data type. For more info, google a about the Scanner class Java