怎么产生 a-z && A-Z 的随机字符?
------解决方案--------------------
public static String nextString()
{
String str = new String();
Random rand = new Random();
switch (rand.nextInt(2))
{
case 0:
str = String.valueOf((char)('A' + rand.nextInt(26)));
case 1:
str = String.valueOf((char)('a' + rand.nextInt(26)));
}
return str;
}