// 生成随机验证码&#64;Testpublicvoidtest11(){String source &#61;"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";Random rand &#61;newRandom();StringBuilder flag &#61;newStringBuilder("");for(int i &#61;0; i <6; i&#43;&#43;){flag.append(source.charAt(rand.nextInt(62)));}System.out.println(flag.toString());}