I am trying to scan through text files and add them to a map, the map and everything is working. However, the scanner seems to be stopping when it comes to a \'enter\' i
Not having worked with Java in a very long time I may be way off, but it looks like you call inputText = input.nextLine();
exactly once, so it makes sense that you're only getting one line. Presumably you want to call nextLine()
in a loop so that it keeps giving you lines until it gets to the end of the file.