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 secToMinSec(Long sec) {
        if (sec == Integer.MAX_VALUE) {
            return "no result";
        } else {
            Long totalTime_sec = sec;
            Long toltalTime_min = sec / 60;
            totalTime_sec -= toltalTime_min * 60;

            return String.format("%02d:%02d", toltalTime_min, totalTime_sec);
        }
    }
}