java - String has access to entire text file -
i working on java project loosely simulates search engine converting gettysburg address text file linear-linked list of word objects contain string of word , line position. compare these against hash table of ignorable words , insert considerable words binary search tree number of appearances recorded if duplicates occur. i have hashing function , of tree-adding parts down having issue can't seem figure out regarding input: when reading gettysburg address using bufferedreader.readline(), after cleansing string of punctuation string seems contain entire text file though instantiated line = br.readline(). here first few lines of getty.txt: four score , 7 years ago our fathers brought forth, upon this continent, new nation, conceived in liberty, , dedicated proposition men created equal. engaged in a i have attached code below context. private static objectlist getwords(string filename) throws ioexception { bufferedreader br = new bufferedreader(new filereader(fil...