SyntaxFix
Write A Post
Hire A Developer
Questions
You need to remove the scanner closing lines: scan.close();
scan.close();
It happened to me before and that was the reason.