My code seems to work properly (tested with System.out.println ) but for some reason, I got the error: The program should not read values from the keyboard. Would you please check if there is an error that I can't see? Thanks a lot!