diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..639900d --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..6fa99bc --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..82709a2 --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + + + + + + + + + + + 1646055467737 + + + + + + + \ No newline at end of file diff --git a/OldTexasCode2.iml b/OldTexasCode2.iml new file mode 100644 index 0000000..ed99e6f --- /dev/null +++ b/OldTexasCode2.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/WeiZ.md b/WeiZ.md new file mode 100644 index 0000000..500d0d4 --- /dev/null +++ b/WeiZ.md @@ -0,0 +1,6 @@ +The code for SimpleWordCounter.java works by importing the file using File class. Then initiating the scanner to read +the file. Following which the program creates an array to store word and word count. Within the loop, the code scans for +words already in the array to increase the word count associated with the word. Otherwise if the word is not +already in the list, the program adds it the array and set count to 1. After the while loop finish the entire file, +it prints out the array line by line to display the word and its count. Lastly, they have a catch exception, incase the +file cannot be read. \ No newline at end of file