private String makeNum(){ Random random=new Random(); String num=random.nextInt(9999999)+""; StringBuffer sb=new StringBuffer(); for (int i = 0; i < 7-num.length(); i++) { sb.append("0") ; } num =sb.toString()+num; return num; }
private String makeNum(){ Random random=new Random(); String num=random.nextInt(9999999)+""; StringBuffer sb=new StringBuffer(); for (int i = 0; i < 7-num.length(); i++) { sb.append("0") ; } num =sb.toString()+num; return num; }