For every code I write when I use a Scanner in my code I am getting a NoSuchElementException during runtime