+ 1

Eplain importjava.uti.scannar

explain scannar in java

1st Mar 2018, 3:46 PM
zaid ahmed
zaid ahmed - avatar
2 Answers
0
Basically handles the input stream in a way, you can handle it more easily without caring about bytes and dat stuff. You call Scanner::nextLine, you've read a string from console, or you call Scanner::nextInt, and you've read and casted an integer. Scanner is typically used for just that - an easy way for console input handling. Read the answer here: https://stackoverflow.com/questions/11871520/
1st Mar 2018, 4:01 PM
Magyar DĂĄvid
Magyar DĂĄvid - avatar
0
scanner is a class that take input from user. import(bring) java(from java) .util(in the utility package) . scanner(this class)
2nd Mar 2018, 4:55 PM
Mansi Parkale