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

 

andersoniii.edwin@cusd80.com > secondsToTime
prev  |  next  |  chance

Write the method to receive one integer representing Seconds and return the Hours, Minutes, and Seconds as a String "hr-min-sec"


secondsToTime(3661) → "1-1-1"
secondsToTime(7322) → "2-2-2"
secondsToTime(6330) → "1-45-30"

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

public String secondsToTime(int sec){ }

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: 100

Copyright Nick Parlante 2017 - privacy