常见的随机组合可用于验证码、券码、临时识别码等用途,先把代码实例备份,以备不时之需,希望也能帮助到浏览到该篇文章的朋友们。 代码实例: private static char[] constant ={'0','1','2','3','4','5','6','7'