Your scanner only has one line of text. After you call nextLine(), you don't have anything else to read. Then you call the next() method, and you get an Exception because there is no next to read.
...
Type: Posts; User: KevinWorkman
Your scanner only has one line of text. After you call nextLine(), you don't have anything else to read. Then you call the next() method, and you get an Exception because there is no next to read.
...
I've added highlight tags for you, please remember them in the future.
That being said, you still haven't provided enough information. What is the error you're getting? Is it a compile-time error...