三九宝宝网宝宝教育写作范文

用java怎么实现统计一英文文档里各个英语字母的个数及所占百分比

12月24日 编辑 39baobao.com

[Dj全英文超嗨节奏越南鼓house音乐串烧 2015年3月收录第一首歌名]Feeling Good - Avicii Birds flying high you know how I feel Sun in the sky you know how I feel Breeze driftin' on by you know how I feel It's a new dawn It's a...+阅读

import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; public class Test { public static void main(String[] args) throws IOException { StringBuilder sb = new StringBuilder(); String file = "words.txt"; BufferedReader bf = new BufferedReader(new FileReader(file)); String content = null; while((content = bf.readLine()) != null){ sb.append(content.trim()); } //如果只统计小写,就传递'a', 'z'进去 countCracts(sb.toString(), 'a', 'z'); System.out.println(); //大写,'A'-'Z' countCracts(sb.toString(), 'A', 'Z'); } private static void countCracts(String str, char start, char end) { for(char a = start; a

以下为关联文档:

英文诗歌真的能写出很美的意境吗在欣赏诗歌之美方面,英文与中文是不可比拟,例如当代诗坛名家诗人写的唯美山水风光古诗词名篇名言名句,英文绝对翻译不出来的意境。虽然如此,英语诗歌里也一样有节奏,有韵脚,有用典...

英文演讲稿开头怎么写你们老师有病...... 你这样吧: Good morning/afternoon/evening everyone. It is a great honour to be here and deliver this speech. My topic today is about some misco...

跪求一篇新学期新计划英文作文 120词左右求大神帮忙啊The new term is coming and I will be wiser and wiser, because i will learn more knowlege. I will do more meaningful things that i think. First,I will get back t...

新学期计划英文作文中文篇一:My Study Plan For The New Term The new term is coming. I am so excited because in the new term, I will be a Grade 8 student. In the new term, I will have so...

婚礼MV背景音乐推荐新一点的英文Blue Mountain River - Cara Dillon Blue mountain river If only for a while Take me to the river I lay down by your side The world is full of madness And I find i...

哪位大神知道好听的适合婚礼MV的英文歌曲啊或则纯音乐也行适合婚礼的英文歌曲大全 A字头歌曲1、《A Groovy Kind Of Love》-Phil Collins 2、《A Love So Beautiful》-Michael Boton 3、《A Whole New World》-阿拉丁主题曲 4、《Ag...

给我3首适合婚礼的MV的歌曲英文歌曲婚庆时候用!好听的加婚礼的话,楼上的都不切题嘛···下面的都太适合了!!!有很好听~注意歌词哦 kelly sweet - we are one promise me living to love you 2 become 1 you are still the one almost...

适合婚礼放的英文歌曲最新好听的歌曲top70 1.那不会是爱吧——张靓颖 2.我们的世界——薛之嫌 3.为你写首歌——方大同 4.我想找一个女朋友——姜玉阳 5.秋天的海——海明威 6.至上励合-《棉花糖...

求几首婚礼上的英文歌曲最好是新曲谢谢The rose 西域男孩嗓音柔和温婉,最适合在婚礼上新郎新娘致辞时做背景音乐 Way back into love 是一首活泼可爱的小情歌,男女对唱,诉说着找到了对方为自己的生活带来了不一样的...

推荐阅读
图文推荐