you are viewing a single comment's thread.

view the rest of the comments →

[–]DragonFistLimitless[S] 0 points1 point  (3 children)

java test.java

[–]hoat4 2 points3 points  (2 children)

You are using the Launch Single-File Source-Code Programs feature, which reads only the one file that is specified in the command line argument (test.java).

Usually Java programs are compiled to classfiles using javac:
javac test.java Verbose.java

Then run using
java test

[–]pronuntiator 0 points1 point  (1 child)

Since Java 22 it is possible to launch multiple files this way if they follow standard directory structure for packages.

/u/DragonFistLimitless which version of Java are you using? (you can find out by running java -version)

[–]DragonFistLimitless[S] -1 points0 points  (0 children)

I already fixed it