I had a Java class named X.

I changed the name to A.

I had references to X still in the program.

Program compiled.

I assume you are keeping the old class files around.

Please delete old class files every time I click Run.