javase里面的知识,还是基础班的
每个字符串有多长没有说 String[] result = new String[4]; for (int i = 0; i < 4; i++) { for (int j = 0; j < 每个字符串的长度; j++) { result[i] += (Math.abs(random.nextInt()) % 10).toString(); } }
说了 题目应该是生成4个 6位数的字符串验证码 , 由0~9组成