Here you can find the source of formatMinutes(long time)
private static String formatMinutes(long time)
//package com.java2s; public class Main { public static final long SECONDS_IN_MILLIS = 1000L; public static final String SECONDS = " seconds"; private static String formatMinutes(long time) { //todo - implement this method. return formatSeconds(time); }//w w w . ja va 2 s.com private static String formatSeconds(long time) { long kbsize = Math.round((float) time / SECONDS_IN_MILLIS); //format 0 decimal places return String.valueOf(kbsize) + SECONDS; } }