第六章第三十八题(生成随机字符)(Generate random characters)
- *6.38(生成随机字符)使用程序清单6-10RandomCharacter中的方法,打印100个大写字母及100个一位数字,每行打印10个。
*6.38(Generate random characters) Use the methods in RandomCharacter in Listing 6.10 to print 100 uppercase letters and then 100 single digits, printing ten per line. - 参考代码:
package chapter06;
public class Code_38 {
public static void main(String[] args) {
for (int i = 1; i <= 200; i++) {
if (<