JAVA 随机字符串
摘要:
public class StringUtils{ private static Random randGen = new Random(); private static char[] letters =("0123456789abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ").toCharArray(); //获取指定长度的随机字符串 public static String randomString(int len){ if(len<1){ ... 阅读全文
posted @ 2011-11-03 20:28 心笑峰 阅读(202) 评论(0) 推荐(0) 编辑