Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    public static String getTimeText(int sec) {
        sec = (int) sec / 1000;
        int minutes = (int) sec / 60;
        sec = sec % 60;

        return String.format("%02d:%02d", minutes, sec);
    }
}