Here you can find the source of intSecondsToStringMinSec(int input)
public static String intSecondsToStringMinSec(int input)
//package com.java2s; import java.text.DecimalFormat; public class Main { public static String intSecondsToStringMinSec(int input) { DecimalFormat df = new DecimalFormat("#00"); int m, s; m = input / 60;/*from w w w . j a v a 2 s . c o m*/ s = input % 60; String tmp = new String(); tmp = df.format(m) + ":" + df.format(s); return tmp; } }