It works when I run and compile it except the - are after the number. Also you should have an import statement at the top declaring your importing the scanner class.