diff --git a/201621123033/.classpath b/201621123033/.classpath
new file mode 100644
index 0000000000000000000000000000000000000000..63b7e892d1ebf1eeb9df3d8d71e5bedb134487c1
--- /dev/null
+++ b/201621123033/.classpath
@@ -0,0 +1,6 @@
+
+
+
+
+
+
diff --git a/201621123033/.keep b/201621123033/.keep
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/201621123033/.project b/201621123033/.project
new file mode 100644
index 0000000000000000000000000000000000000000..00ef62f048faf1a4fb72405b4c9c7a50045a7a05
--- /dev/null
+++ b/201621123033/.project
@@ -0,0 +1,17 @@
+
+
+ software
+
+
+
+
+
+ org.eclipse.jdt.core.javabuilder
+
+
+
+
+
+ org.eclipse.jdt.core.javanature
+
+
diff --git a/201621123033/.settings/org.eclipse.jdt.core.prefs b/201621123033/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 0000000000000000000000000000000000000000..bb35fa0a87b032ee9d0b128004c1edbd464f07bf
--- /dev/null
+++ b/201621123033/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,11 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
+org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
+org.eclipse.jdt.core.compiler.compliance=1.8
+org.eclipse.jdt.core.compiler.debug.lineNumber=generate
+org.eclipse.jdt.core.compiler.debug.localVariable=generate
+org.eclipse.jdt.core.compiler.debug.sourceFile=generate
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.8
diff --git a/201621123033/beauty.txt b/201621123033/beauty.txt
new file mode 100644
index 0000000000000000000000000000000000000000..10f4db4355c112804c1bdde96fc1e56c96dfaa4e
--- /dev/null
+++ b/201621123033/beauty.txt
@@ -0,0 +1,13 @@
+Beauty
+There were a sensitivity and a beauty to her that have nothing to do with looks. She was one to be listened to, whose words were so easy to take to heart.
+It is said that the true nature of being is veiled. The labor of words, the expression of art, the seemingly ceaseless buzz that is human thought all have in common the need to get at what really is so. The hope to draw close to and possess the truth of being can be a feverish one. In some cases it can even be fatal, if pleasure is one's truth and its attainment more important than life itself. In other lives, though, the search for what is truthful gives life.
+I used to find notes left in the collection basket, beautiful notes about my homilies and about the writer's thoughts on the daily scriptural readings. The person who penned the notes would add reflections to my thoughts and would always include some quotes from poets and mystics he or she had read and remembered and loved. The notes fascinated me. Here was someone immersed in a search for truth and beauty. Words had been treasured, words that were beautiful. And I felt as if the words somehow delighted in being discovered, for they were obviously very generous to the as yet anonymous writer of the notes. And now this person was in turn learning the secret of sharing them. Beauty so shines when given away. The only truth that exists is, in that sense, free.
+It was a long time before I met the author of the notes.
+One Sunday morning, I was told that someone was waiting for me in the office. The young person who answered the rectory door said that it was "the woman who said she left all the notes." When I saw her I was shocked, since I immediately recognized her from church but had no idea that it was she who wrote the notes. She was sitting in a chair in the office with her hands folded in her lap. Her head was bowed and when she raised it to look at me, she could barely smile without pain. Her face was disfigured, and the skin so tight from surgical procedures that smiling or laughing was very difficult for her. She had suffered terribly from treatment to remove the growths that had so marred her face.
+We chatted for a while that Sunday morning and agreed to meet for lunch later that week.
+As it turned out we went to lunch several times, and she always wore a hat during the meal. I think that treatments of some sort had caused a lot of her hair to fall out. We shared things about our lives. I told her about my schooling and growing up. She told me that she had worked for years for an insurance company. She never mentioned family, and I did not ask.
+We spoke of authors we both had read, and it was easy to tell that books are a great love of hers.
+I have thought about her often over the years and how she struggled in a society that places an incredible premium on looks, class, wealth and all the other fineries of life. She suffered from a disfigurement that cannot be made to look attractive. I know that her condition hurt her deeply.
+Would her life have been different had she been pretty? Chances are it would have. And yet there were a sensitivity and a beauty to her that had nothing to do with looks. She was one to be listened to, whose words were so easy to take to heart. Her words came from a wounded but loving heart, very much like all hearts, but she had more of a need to be aware of it, to live with it and learn from it. She possessed a fine-tuned sense of beauty. Her only fear in life was the loss of a friend.
+How long does it take most of us to reach that level of human growth, if we ever get there? We get so consumed and diminished, worrying about all the things that need improving, we can easily forget to cherish those things that last. Friendship, so rare and so good, just needs our care-maybe even the simple gesture of writing a little note now and then, or the dropping of some beautiful words in a basket, in the hope that such beauty will be shared and taken to heart.
+The truth of her life was a desire to see beyond the surface for a glimpse of what it is that matters. She found beauty and grace and they befriended her, and showed her what is real.
\ No newline at end of file
diff --git a/201621123033/bin/WordCount/Count$1.class b/201621123033/bin/WordCount/Count$1.class
new file mode 100644
index 0000000000000000000000000000000000000000..4973ae9127e022c3bbb202ec9226611dce00be3f
Binary files /dev/null and b/201621123033/bin/WordCount/Count$1.class differ
diff --git a/201621123033/bin/WordCount/Count.class b/201621123033/bin/WordCount/Count.class
new file mode 100644
index 0000000000000000000000000000000000000000..f3070eae58dc96478d87569dcedc7d73260ea9bb
Binary files /dev/null and b/201621123033/bin/WordCount/Count.class differ
diff --git a/201621123033/bin/WordCount/File.class b/201621123033/bin/WordCount/File.class
new file mode 100644
index 0000000000000000000000000000000000000000..fa01c214de1091bdbaf171eda3196bfc662a990f
Binary files /dev/null and b/201621123033/bin/WordCount/File.class differ
diff --git a/201621123033/bin/WordCount/Main.class b/201621123033/bin/WordCount/Main.class
new file mode 100644
index 0000000000000000000000000000000000000000..320803cecbffa824110ce5e7d8675f9bed723252
Binary files /dev/null and b/201621123033/bin/WordCount/Main.class differ
diff --git a/201621123033/blank.txt b/201621123033/blank.txt
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/201621123033/noword.txt b/201621123033/noword.txt
new file mode 100644
index 0000000000000000000000000000000000000000..7fccc634f8911a8d47c1ab3bfbc282c437188dd2
--- /dev/null
+++ b/201621123033/noword.txt
@@ -0,0 +1,3 @@
+hel12
+8888
+4444 777 cc666
\ No newline at end of file
diff --git a/201621123033/result.txt b/201621123033/result.txt
new file mode 100644
index 0000000000000000000000000000000000000000..cde91f5c262a04e5b499e832ea2bd36c4a64240c
--- /dev/null
+++ b/201621123033/result.txt
@@ -0,0 +1,13 @@
+characters:3271
+words:276
+lines:13
+that:25
+beauty:8
+notes:8
+words:8
+from:7
+about:6
+life:6
+were:6
+have:5
+truth:5
diff --git a/201621123033/src/WordCount/Count.java b/201621123033/src/WordCount/Count.java
new file mode 100644
index 0000000000000000000000000000000000000000..095be5654519d7b0f2bf863aee68dc6d911da05f
--- /dev/null
+++ b/201621123033/src/WordCount/Count.java
@@ -0,0 +1,98 @@
+package WordCount;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.Comparator;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Map.Entry;
+
+public class Count {
+ ArrayList line=new ArrayList<>();
+ Map map=new HashMap();
+ public Count(ArrayList line){
+ this.line=line;
+ }
+
+ public int CountChars(){
+ int count=0;
+ for(int i=0;i=4){
+ String[] words=str.split("[^a-zA-Z0-9]+");
+ for (String word:words){
+ int flag=0;
+ char[] w=word.toCharArray();
+ for(int j=0;j<4;j++){
+ if(!(('A'<=w[j]&&w[j]<='Z')||('a'<=w[j]&&w[j]<='z'))){
+ flag=1;
+ break;
+ }
+ }
+ if(flag==0){
+ if(!map.containsKey(word)){
+ count++;
+ map.put(word, 1);
+ }
+ else{
+ int num=map.get(word);
+ map.put(word, ++num);
+ }
+ }
+ }
+ }
+ }
+ return count;
+ }
+
+
+ public int CountLine(){
+ int count=0;
+ for(int i=0;i0){
+ count++;
+ }
+ }
+ return count;
+ }
+
+ public ArrayList WordTop(int count){
+ ArrayList> list = new ArrayList>(map.entrySet());
+ Collections.sort(list, new Comparator>() {
+
+ @Override
+ public int compare(Entry o1, Entry o2) {
+ if (o1.getValue() == o2.getValue()) {
+ return o1.getKey().compareTo(o2.getKey());
+ }
+ return o2.getValue() - o1.getValue();
+ }
+
+ });
+ if(count<=10){
+ return list;
+ }
+ else{
+ for(int i=list.size();i>=10;i--){
+ list.remove(i);
+ }
+ return list;
+ }
+ }
+
+}
diff --git a/201621123033/src/WordCount/File.java b/201621123033/src/WordCount/File.java
new file mode 100644
index 0000000000000000000000000000000000000000..2e68024bdb3e8fa17d7f5806cdd6f627cc3d562a
--- /dev/null
+++ b/201621123033/src/WordCount/File.java
@@ -0,0 +1,57 @@
+package WordCount;
+
+import java.io.BufferedReader;
+import java.io.BufferedWriter;
+import java.io.FileReader;
+import java.io.FileWriter;
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.Map;
+import java.util.Map.Entry;
+
+public class File {
+ public ArrayList readfile(String file){
+ ArrayList arrylist=new ArrayList<>();
+ try{
+ FileReader fr=new FileReader(file);
+ BufferedReader br=new BufferedReader(fr);
+ String str;
+ while((str=br.readLine())!=null){
+ arrylist.add(str);
+ }
+ fr.close();
+ br.close();
+ }catch (IOException e){
+ e.printStackTrace();
+ }
+ return arrylist;
+ }
+
+
+
+ public void writefile(String path,int CountChars,int CountWords,int CountLine,ArrayList> wordtop){
+ try{
+ FileWriter fw=new FileWriter(path);
+ BufferedWriter bw=new BufferedWriter(fw);
+ String str1="characters:"+CountChars;
+ String str2="words:"+CountWords;
+ String str3="lines:"+CountLine;
+ bw.write(str1);
+ bw.newLine();
+ bw.write(str2);
+ bw.newLine();
+ bw.write(str3);
+ bw.newLine();
+ for(int i=0;i e=wordtop.get(i);
+ bw.write(e.getKey()+ ":" +e.getValue());
+ bw.newLine();
+ }
+ bw.close();
+ fw.close();
+ }catch (IOException e){
+ e.printStackTrace();
+ }
+ }
+
+}
diff --git a/201621123033/src/WordCount/Main.java b/201621123033/src/WordCount/Main.java
new file mode 100644
index 0000000000000000000000000000000000000000..679c83b59bd4aade93757705634dc8c88c44ea48
--- /dev/null
+++ b/201621123033/src/WordCount/Main.java
@@ -0,0 +1,21 @@
+package WordCount;
+
+import java.util.ArrayList;
+import java.util.Map.Entry;
+
+public class Main {
+ public static void main(String[] args){
+ String path="D:\\java练习\\software\\words.txt";
+ String save="D:\\java练习\\software\\result.txt";
+ File file=new File();
+ ArrayList line=new ArrayList<>();
+ line=file.readfile(path);
+ Count count=new Count(line);
+ int CountChars=count.CountChars();
+ int CountWords=count.CountWords();
+ int CountLine=count.CountLine();
+ ArrayList> wordtop=count.WordTop(CountWords);
+ file.writefile(save, CountChars, CountWords, CountLine, wordtop);
+ }
+
+}
diff --git a/201621123033/test1.txt b/201621123033/test1.txt
new file mode 100644
index 0000000000000000000000000000000000000000..fe5ab16681a9e943f83956df3b5bbeecbb789437
--- /dev/null
+++ b/201621123033/test1.txt
@@ -0,0 +1,8 @@
+
+File file File12 File123
+
+Hello world File|file\File
+
+hel
+he
+h
\ No newline at end of file
diff --git a/201621123033/test2.txt b/201621123033/test2.txt
new file mode 100644
index 0000000000000000000000000000000000000000..f2aa8ce73e275a39df35820463738c9b6dd54938
--- /dev/null
+++ b/201621123033/test2.txt
@@ -0,0 +1,5 @@
+你好 我是大侦探
+
+福尔摩斯
+
+的邻居
\ No newline at end of file
diff --git a/201621123033/test3.txt b/201621123033/test3.txt
new file mode 100644
index 0000000000000000000000000000000000000000..15e80b4f1d3901c4fa5e398407c65e26d88b6f89
--- /dev/null
+++ b/201621123033/test3.txt
@@ -0,0 +1,4 @@
+hello world hello12 file File
+hello holmec holmes asuka
+asuka asuKa
+java python software web zoo animate
\ No newline at end of file
diff --git a/201621123033/words.txt b/201621123033/words.txt
new file mode 100644
index 0000000000000000000000000000000000000000..4dd2f480707047ebcee611eecfd8f31eac51fd95
--- /dev/null
+++ b/201621123033/words.txt
@@ -0,0 +1,4 @@
+file12 hello world file12 88888
+4444
+
+hello file12
\ No newline at end of file