Java Integer Format format(int num)

Here you can find the source of format(int num)

Description

format

License

Open Source License

Declaration

private static String format(int num) 

Method Source Code

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

public class Main {
    private static String format(int num) {
        return (num < 10 ? "0" : "") + num;
    }//from   w ww.  j a v  a 2  s  .c om
}

Related

  1. format(int c)
  2. format(int color)
  3. format(int i, int fillLength)
  4. format(int i, int length, boolean left_justify, char fill)
  5. format(int intval)
  6. format(int num, int length)
  7. format(int spaces, String string)
  8. format(int ticks)
  9. formatInt(int i, int radix, int len)