Computer Science, asked by Sahana23, 1 year ago

what is scanner class statement in Java programming

Answers

Answered by lakki02
5
The Scanner class is a class in java.util, which allows the user to read values of various types. There are far more methods in class Scanner than you will need in this course. We only cover a small useful subset, ones that allow us to read in numeric values from either the keyboard or file without having to convert them from strings and determine if there are more values to be read.
Answered by DevinaK
3
hii

There are various ways to read input from the keyboard, the java.util.Scanner class is one of them.

The Java Scanner class breaks the input into tokens using a delimiter that is whitespace bydefault. It provides many methods to read and parse various primitive values.

Java Scanner class is widely used to parse text for string and primitive types using regular expression.

Java Scanner class extends Object class and implements Iterator and Closeable interfaces.

hope helps

DevinaK: kya tum apna 2nd Acc. banaoga plzz
DevinaK: atleat fr mine if u wnt 2 talk plzz
DevinaK: but u know i m in chandigarh nw soo mai zyada baat nhi kr paaungi
DevinaK: soo plz if u wnt 2 stay my gud frnd nd missed me then fr me plzz dosra acc. banao
DevinaK: maine bhi tumhare liya 2nd acc. banaya tha naa
DevinaK: nw its ur turn.....
Similar questions