This may be just the formatting (after copy-pasting), but if you can indent the methods of the class by one tab, that would be great for the reader.If you can help it (unless it is an exercise for you), do not use BufferedReader and the like to read from a file - either use a Scanner or some of the file classes in java.io.Your wordTrack method has a catch (IOException e) but does not declare that it can throw an IOException in its header (the same can be said for the fileIn and fileOut methods).In your sentenceCounts method, what does the if(!counts.equals(" ")) code do? Did you mean to have multiple spaces in that String?.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |