title: Java to Count the Frequency/Occurance of X letter words?
body: <p>I'm sorry for having to ask this question, and I do sincerely appreciate your assistance. I'm working with Java, and I need to count the amount of times a x letter word appears. The word x is basically a number, replace it with whatever number (i.e. 1/2/3). ;)</p>
  
  <p>x letter word = 1 letter word/2 letter word/3 letter word and so on.</p>
  
  <p>So if a text file had the following text:</p>
  
  <pre><code>Hello World! This is a sample file.
  </code></pre>
  
  <p>The following should be output from Java:</p>
  
  <p>1 letter words: 1
  2 letter words: 2
  3 letter words: 2
  4 letter words: 3
  5 letter words: 0
  ..
  9 letter words: 1</p>
  
  <p>Sorry for the hassle, but would that be possible? Please let me know if it doesn't make any sense. I sincerely appreciate the assistance! :D</p>
  
  <p>Thank you ever so much!</p>