SyntaxFix
Write A Post
Hire A Developer
Questions
You should place Scanner input = new Scanner (System.in); into the main method rather than creating the input object outside.
Scanner input = new Scanner (System.in);