id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

convertSecondsToTimeString


Given a parameter representing the number of seconds, return a string that converts the seconds into a string of the format "hh:mm:ss", where hh is hours, mm is minutes (must be 2 digits or less), ss is seconds (must be 2 digits or less).


convertSecondsToTimeString(60) → "0:1:0"
convertSecondsToTimeString(3695) → "1:1:35"
convertSecondsToTimeString(0) → "0:0:0"

...Save, Compile, Run (ctrl-enter)

public String convertSecondsToTimeString(int seconds) }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 200 Post-solution available

Copyright Nick Parlante 2017 - privacy