+ 1

Hi everyone, I'm new in programming , i don't know how to use scanner in java and write it's code?

I should write a program which converts days to seconds. The given code gives the amount of days as input!

20th Jun 2022, 2:43 PM
Rafiullah Ahmadi
Rafiullah Ahmadi - avatar
1 Respuesta
0
Import Scanner class which comes in util package Make an object of Scanner class and then read input. Scanner sc = new Scanner(System.in); int n = sc.nextInt();
20th Jun 2022, 2:57 PM
A͢J
A͢J - avatar