Old Code keeps popping out in output

Problem description:
New Codes outputs old code even when there isn’t any way it could happen.

Expected behavior:
For example:
System.out.println(“Hello”); OLD CODE outputs-Hello

System.out.println(“Hi”); NEW CODE outputs-Hello

I tried isolating it to just the new code shown here and it still prints the old code.

Actual behavior:

Steps to reproduce:

Bug appears at this link:


Are you using a Main.java file or are you using a file with a different name? By default, we will run the Main.java file, but you can customize how that behavior works as shown in this video: Loom | Free Screen & Video Recording Software | Loom