Java Zero Format zeroString(int length)

Here you can find the source of zeroString(int length)

Description

zero String

License

Open Source License

Declaration

public static String zeroString(int length) 

Method Source Code

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

public class Main {

    public static String zeroString(int length) {
        StringBuffer sb = new StringBuffer();
        for (int i = 0; i < length; i++) {
            sb.append('0');
        }//from   www.  j  av a 2  s .co m
        return sb.toString();
    }
}

Related

  1. zeroPrepend(long num, int digits)
  2. ZeroRemover(String[] a)
  3. zeros(int n)
  4. zeros(int size)
  5. zerosInt(int len)
  6. zeroString(int value)
  7. zeroSupply(String value, int len)
  8. zeroThrough(int max)
  9. zeroToOne(float value, float min, float max)