Computer Science, asked by satyam9980, 6 months ago

How to create scanner object : *

1) Scanner sc= new Scanner ( System. in );

2) scanner in = scanner new ((system. in);

3) Scanner sc = new data scanner;

4)Scanner br = new data input stream (System.in);​

Answers

Answered by sayantanchowdhury419
3

Answer:

1.

Explanation:

Scanner sc = new Scanner(System.in);

instead of sc ypu can take any variable.

Similar questions