Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

//Class Time Public Class Time Breakdown { /** * * @param args */ public, static

ID: 3887016 • Letter: #

Question

//Class Time Public Class Time Breakdown { /** * * @param args */ public, static void main (String [] args) { // T0D0 Auto-generated method stub // Console input and output //declare variables int seconds = 2693793: int minutes = 0, hours = 0, days = 0: System.out.prinln("A time of "+ second +" seconds is equivalent to"): //one day contains 86400 seconds days = seconds/86400: System.out.println(days): //update seconds by removing seconds of days seconds - = days * 86400: //one hour contains 3600 seconds hours = seconds/3600: //update seconds by removing seconds of hours seconds -= hours * 3600: //one minute contains 3600 seconds minutes = seconds/60: //update seconds by removing seconds of minutes seconds - = minutes * 60: System.out.println(" " + days + "day(s)"): System.out.println(" " + hours + "hour(s)"): System.out.println(" " + minutes + "minute(s)"): System.out.println(" * + seconds + "second(s)"): } }

Explanation / Answer

//Please thumbs up if you like the solution

In your code class name is Time_Breakdown and file name is TimeBreakdown.java therefore you are facing compile time error.

change the name of the class from Time_Breakdown to TimeBreakdown your program will work like below.

public class TimeBreakdown