79231428

Date: 2024-11-27 18:17:32
Score: 1.5
Natty:
Report link

Scanner sc=new Scanner(System.in); As,Scanner class-It belong to java.util package where it is used for user input. sc=new Scanner(System.in)-It is an object creation statement.As,it is used to create an new object in the scanner class where the variable named is sc. (System.in)-As, it an standard input stream,means keyborad when the program is executing. Hope it will be helpful for you.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Dipti Singh