+ 3

I'm having trouble with my code rn. I'm new in java. The input is 9 but it has errors. Can u guys help me with this?

https://code.sololearn.com/cNms8ncgqMRz/?ref=app

30th Jun 2019, 1:55 PM
Reyven Legaspi
Reyven Legaspi - avatar
4 Answers
+ 8
● you didn't declared variable like TotalSecondsFromHours/Minutes, TotalSeconds by specifying datatype as int ● spelling of some variable TotalSecondsFromMinutes is incorrect in print statement ● suggestion : try to write small variable names & start them with small letter(as generally classes are given first letter as capital, its a good programming practice & makes code more readable)
30th Jun 2019, 2:04 PM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 6
yes it will give no error, but I guess you should add seconds too while accounting for totalSecs (try using this variable instead of Totalsecs) 👍
30th Jun 2019, 2:34 PM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 4
Yes man I'll work on that. Thank u so much. God bless u man
30th Jun 2019, 2:42 PM
Reyven Legaspi
Reyven Legaspi - avatar
+ 3
Thank you. Helpful indeed. I did all of the things that you said. But is it correct now?
30th Jun 2019, 2:30 PM
Reyven Legaspi
Reyven Legaspi - avatar