Java Double Number From toDoubleDigit(int number)

Here you can find the source of toDoubleDigit(int number)

Description

to Double Digit

License

Apache License

Declaration

public static String toDoubleDigit(int number) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {

    public static String toDoubleDigit(int number) {
        if (number >= 0 && number < 10) {
            return "0" + ((Integer) number).toString();
        }/*from   w w  w  . ja  v a  2s . c o m*/
        return ((Integer) number).toString();
    }
}

Related

  1. toDoubleAsUnsigned(long v)
  2. toDoubleByObject(Object obj)
  3. toDoubleMatrix(Number[][] matrix)
  4. toDoubleObject(Object obj)
  5. toDoublePow10(long m, int n)
  6. toDoublePow2(long m, int n)