I willl advise to save the program and EXIT the IDE and then launch it again, and re-run the program.
If this didn't so it must be a logical error that's not apparent.
I'm using an online compiler since my pc had to be reformatted and I was trying to test something out, I'll try again when I get an IDE. Thanks, though.