Here you can find the source of formatSeconds(double value)
public static String formatSeconds(double value)
//package com.java2s; //License from project: Open Source License public class Main { public static String formatSeconds(double value) { return String.format("%4.2f", value); }/*ww w. ja v a 2s . c o m*/ }