//problem 2.4.1// time_2_4_1.java: write a program to calculate current time in hrs,min,sec.(usign finction System.curretTimeMillis();)classtime_2_4_1{publicstaticvoidmain(Stringargs[]){// System.out.println("Giving the current time in seconds: ");System.out.println((System.currentTimeMillis()));System.out.println("Time in hour "+(System.currentTimeMillis()/3600)+" : minute "+(System.currentTimeMillis()/60)+" : seconds "+System.currentTimeMillis());}}
Top comments (0)
Subscribe
We're a place where coders share, stay up-to-date and grow their careers.
Top comments (0)