Standard IO shows error while running

how can we take input for the program using scanner object, every time i run my code i get NoSuchElementException