Java Integer to String intToString(final long v, final int length)

Here you can find the source of intToString(final long v, final int length)

Description

int To String

License

Open Source License

Declaration

public static String intToString(final long v, final int length) 

Method Source Code

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

public class Main {
    public static String intToString(final long v, final int length) {
        final StringBuilder sb = new StringBuilder("" + v);
        while (sb.length() < length) {
            sb.insert(0, "0");
        }//www  .  j a  v a 2s  . c  om
        return sb.toString();
    }
}

Related

  1. inttostr(String intStr)
  2. intToStr3(final int param)
  3. intToString(final int param)
  4. intToString(final int value)
  5. intToString(final Integer value)
  6. intToString(int i)
  7. intToString(int i)
  8. intToString(int i)
  9. intToString(int integer)