Java Integer to intToMmss(int ns)

Here you can find the source of intToMmss(int ns)

Description

int To Mmss

License

Open Source License

Declaration

public static String intToMmss(int ns) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static String intToMmss(int ns) {
        if (ns < 10)
            return "0:0" + ns;
        if (ns < 60)
            return "0:" + ns;
        int rem = ns % 60;
        if (rem < 10)
            return ns / 60 + ":0" + rem;
        else//from w  ww.j av a  2s. c o  m
            return ns / 60 + ":" + rem;
    }
}

Related

  1. intToLetter(int index)
  2. intToLex(int v)
  3. intToLittleEndian(int val)
  4. intToLittleEndian(int value)
  5. intToMCInts(int i)
  6. intToNetworkByteOrder(int num, byte[] buf, int start, int count)
  7. intToNetworkByteOrder(int num, int count)
  8. intToNumericFormat(int src)
  9. intToOctal(int value)