账号 & 验证码的生成代码
账号生成
import java.util.Random;
/**
* 账号生成器
*/
public class AccountGenerator {
//...allnumcode = "0,1,2,3,4,5,6,7,8,9";
// 纯小写字母
private final static String allcharcode = "a,b,c,...,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z";
// 大小写字母 数字 混合型
private final static String allcode = "a,b,c,...d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,0,1,2,3,4,5,6,7,8,9...";
// 输入验证码长度 生成纯数字验证码
public static String allnumcode(int num){
StringBuilder code