2 תשובות
תכתוב בין הsystem הראשון לפקודת קלט- input.next();
בנוסף לא במקום
צריך להתחל את scanner

scanner input = new scanner (system.in):