title: How to implement hashing for the following
body: <p>I am attempting to write a Java program that uses hashing for the following problem. Given a natural-language text, generate a list of distinct words with the number of occurrences of each word in the text. Insert appropriate counters in the program to compare the empirical efficiency of hashing with the corresponding theoretical results. </p>
  
  <p>I understand the basic principle of hashing and hash tables, but I do not know how to implement it into a computer program. My textbook gives no examples, and my professor never went over any specific examples in my class. </p>
  
  <p>I believe the program should first scan the text from a file, but I have no clue where to go after that. </p>
  
  <p>Thank you for the help. </p>