Computer Science, asked by divyanshi261, 1 year ago

HeÿA ❗❗✨✌

✨ What is scanner class? How does it takes input from the user?
#computer science


divyanshi261: okie

Answers

Answered by saurabhkumar47pakwtj
3
hey mate here is your answer ...


The java.util.Scanner class is a simple text scanner which can parse primitive types and strings using regular expressions.Following are the important points about Scanner − A Scanner breaks its input into tokens using a delimiter pattern, which by default matches whitespace.


hope it helps you mark it brainliest if you like :-)
Answered by Suaib
2
Scanner is a class in java.util package used for obtaining the input of the primitive types like int, double etc. and strings. It is the easiest way to read input in a Java program, though not very efficient if you want an input method for scenarios where time is a constraint like in competitiveprogramming.
Similar questions