for my java code my output on minutes and seconds shows 8:0 how would i add the
ID: 3749967 • Letter: F
Question
for my java code my output on minutes and seconds shows 8:0 how would i add the other 0 to show 8:00
nteractions Console Compiler output Test Output Hov far did you nun today? 1:5 How long did it tare? hours: minutes 12 Hi ami Your narathon tine is 8:0 (minutes: seconds) At this zate your narathon time would be 3:09:36 and your 10k tine vould be 0: 49: 41 cood luck vith your training Pace l01 Time Harathon Time 4: 41 2:02: 4 5: 41 35:19 2:28:54 41:30 4D: 4 L0 34t Running main Method of Qurrent Document O Type here to searchExplanation / Answer
If you can post your entire code then it would be helpful to debug it.
As of now i can suggest you only thing.
If you have integer variable then integers don't have leading zeros as an int is just an integer.
They can only be displayed with leading zeros when you convert them to String objects.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.