Java 编程练习:用一行代码生成 100 个重复字母序列 "ABCDABCD..."
char[] sb = new char[100];\nRandom r = new Random();\nfor(int i=0;i<100;i++){\nsb[i] = (char)('A' + i % 4);\n}
原文地址: https://www.cveoy.top/t/topic/qe8g 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
char[] sb = new char[100];\nRandom r = new Random();\nfor(int i=0;i<100;i++){\nsb[i] = (char)('A' + i % 4);\n}
原文地址: https://www.cveoy.top/t/topic/qe8g 著作权归作者所有。请勿转载和采集!