版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。package com.netmarch.util; import java.text.SimpleDateFormat; import java.util.Date; import java.util.regex.Pattern; /** * * @author YXK * */ public class NetmarchUtils {	public final static String IntStr = "0123456789";	public final static String StrStr = "abcdefghijklmopqrstuvwxyzABCDEFGHIJKLMOPQRSTUVWXYZ";	public final static String IntStrStr = "0123456789abcdefghijklmopqrstuvwxyzABCDEFGHIJKLMOPQRSTUVWXYZ";	//------------------------------随机数公共方法-----------------------------------------------------------------	/**	* 随机字符或者字符串生成公共方法	* @param length 生成随机字符或者字符串的长度	* @param type “a”随机数字字符 “b” 随机字母字符 “c” 随机数字和字母字符	* @return	*/	public final static String returnRandom(int length,String type) {	String str = "";	StringBuffer renturnStr = new StringBuffer();	if("a".equals(type)) str = IntStr;	else if("b".equals(type)) str = StrStr;	else str = IntStrStr;&