I need help on how to start a Java class.
The class defines a method or methods that first reads in a file then reads its characters one by one. After doing this it is to see how many of those characters form words by looking for things like '.' and ' '. After all that, keep count of how many words and put them on a hashmap.
I know how to use a for loop to look for the ' ', ',', '.' etc. and keeping count of words
But I don't know how to read in a file that reads character by character a file.
My TA said something about the 'put' and 'get' method? no idea what they are :S
Therefore I know how to do pretty much everything except the beginning. sorry I can't show you a method of the second half before knowing how to do the first half.
Any help to get this started .. thanks!