need to create a program that reads from a txt files that has all the names used from 1900 to 2010 with the ranking for each respective decade. I have created my own methods to read from the file find the name and store the full line to be used in a different methods that will tokenize each int and put them in their respect decade, however im having trouble with my get name method, when i run it I get
java.util.Scanner[delimiters=\p{javaWhitespace}+][position=7][match valid=true][need input=false][source closed=false][skipped=false][group separator=\,][decimal separator=.][positive prefix=][negative prefix=\Q-\E][positive suffix=][negative suffix=][NaN string=\Q?\E][infinity string=\Q?\E]
can anyone explain this, and any suggestions for a better set up, im pretty sure I have the logic set up incorrect, in the method getName, im trying to create a while loop that scans the document until the last line, if the name is found, temp would equal the full line assigning it to the
String getName and returning it to the method. If the name is not found, it would say "name not found" and request for another name, i was thinking about placing a while loop that would call onitself if name was not found, but I dont think that I can do this for this assignment.