import java.util.Random;
public class RandomGenDemo {
public static void main(String[] args) {
System.out.println("四位的验证码为:"+RandomGen.codeGen());
}
}
class RandomGen{
public static String codeGen(){
char [] codeSequence = {
'A','B','C','D','E','F'
Java随机产生四位验证码
最新推荐文章于 2023-07-03 22:32:36 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)