Computer Science, asked by priya4650, 5 months ago

how we can use scanner class in program??​

Answers

Answered by Braɪnlyємρєяσя
1

Explanation:

Scanner Class in Java

To create an object of Scanner class, we usually pass the predefined object System.in, which represents the standard input stream. ...

To read numerical values of a certain data type XYZ, the function to use is nextXYZ(). ...

To read strings, we use nextLine().

To read a single character, we use next().

Similar questions