文档介绍:lasstest2{publicstaticvoidmain(String[]args){StringBufferstr=newStringBuffer();for(inti=(int)'A',length=(int)'Z';i<=length;i++){((char)i);}(str);}};;lassTest{publicstaticvoidmain(String[]args){Randomr=newRandom();charzi;ArrayList<Character>list=newArrayList<Character>();//直接定义为Character对象for(inttimes=0,count=1;times<26;times++){while(true){zi=(char)((26)+97);//第一次不用单独判断,否则每次的循环的时候还得判断times==0,("count:"+(count++)+"--"+zi);if(!(zi)){(zi);break;}}}("listsize:"+());for(charc:list){(c+"");}}}用26个英文字母随即产生1000个英文大写字母,选出元音字母的个数以降序排列并输出相应的个数packageexample;;lassTest{char[]chs={'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'};Randomr=newRandom();privatestaticStringletters="";privateinta=0;privateinte=0;privateinti=0;privateinto=0;privateintu=0;//随机产生1000个英文字母publicvoidLetter(){for(inti=0;