Program all ready given in console in learning java beginner

Describe your issue

task is given and the answer is directly provided while running, how can we practice if answer is give, previously we needed to edit the errors and now they asking to edit and directly code provide, all i have to do it just submit and next?

Screenshot

Additional info

This can only happen if someone else has used this laptop to solve these problem previously. In any case, you can clear your local storage to get this fixed.