0

Please someone make correct me .

Time Concersion Java code ( days into seconds ) https://code.sololearn.com/cZdnmy1Tj3rD/?ref=app

3rd Dec 2020, 7:17 AM
Pankaj
Pankaj - avatar
9 Answers
+ 9
Just_ Luvvv Ig you have forget to add int days =sc.nextInt(); In your code.. that can be the reason your code isn't working!
3rd Dec 2020, 7:26 AM
Piyush
Piyush - avatar
+ 8
U can't take user input by like that Lol.. Also use nextInt() instead of nextLine() when u have to assign an integer value to days as user input... Now corrected 👇 https://code.sololearn.com/c0ZQvj5H9wM3/?ref=app
3rd Dec 2020, 7:21 AM
Alphin K Sajan
Alphin K Sajan - avatar
+ 7
Just_ Luvvv 1. nextInt() => i should be capital 2. Use + for combining outputs instead of ' , ' ... i.e. System.out.println("Days="+ days);
3rd Dec 2020, 7:32 AM
Alphin K Sajan
Alphin K Sajan - avatar
+ 1
Okhh Alphin K Sajan but will uU tell me why my code doesn't work ?
3rd Dec 2020, 7:23 AM
Pankaj
Pankaj - avatar
+ 1
3rd Dec 2020, 7:26 AM
Pankaj
Pankaj - avatar
0
Okh
3rd Dec 2020, 7:20 AM
Pankaj
Pankaj - avatar
0
One more thing
3rd Dec 2020, 7:26 AM
Pankaj
Pankaj - avatar
3rd Dec 2020, 7:27 AM
Pankaj
Pankaj - avatar
3rd Dec 2020, 7:28 AM
Pankaj
Pankaj - avatar