Computer Science, asked by Anonymous, 1 year ago

can someone tell me how can I write program by scanner

Answers

Answered by Sahil1711
1
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.


Anonymous: thanks
Sahil1711: wlcm mark as brainliest
Anonymous: okk
Anonymous: But now there is no option of brainlest
Anonymous: later I will mark
Anonymous: u are in which class
Sahil1711: ok
Sahil1711: class 10
Similar questions