Here you can find the source of randomZeroString(int length)
public static String randomZeroString(int length)
//package com.java2s; //License from project: Apache License public class Main { public static String randomZeroString(int length) { StringBuffer sb = new StringBuffer(); for (int i = 0; i < length; i++) { sb.append("0"); }// w w w . ja v a2s . c o m return sb.toString(); } }