Java Decimal Create decimal(final int i)

Here you can find the source of decimal(final int i)

Description

decimal

License

Open Source License

Declaration

public static String decimal(final int i) 

Method Source Code

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

public class Main {
    public static String decimal(final int i) {
        if (i < 10) {
            return "0" + i;
        }//from  w w  w .ja  v  a2s .  c o  m
        return Integer.toString(i);
    }
}

Related

  1. decimal(Object o)
  2. decimalize(double dms)
  3. decimalize(float v)