So I can't seem to figure out the error that the program keeps throwing. it only happens when I select option 2 from my menu and the line of code it directs me to for the error is line 140 which is "userChoice = one.nextInt();"
Any ideas on what could be the problem? This is the error code
java.util.NoSuchElementException
at java.util.Scanner.throwFor(Unknown Source)
at java.util.Scanner.next(Unknown Source)
at java.util.Scanner.nextInt(Unknown Source)
at java.util.Scanner.nextInt(Unknown Source)
at TickerReader.main(TickerReader.java:140)
I posted the code on pastebin since it's a longish piece of code https://pastebin.com/dqXQhJvN