Skip to content
How can you get rid of the main.java file and replace it with another file?
Profile icon
akschindler

How can you get rid of the main.java file and replace it with another .java file?

You are viewing a single comment. View All
Profile icon
JaredCollacchi

After that you have to use the Console to Compile/Run your Program

  1. Type "dir" to list all files in the Directory/Folder

  2. Type "javac [File_Name].java" to compile to code into a usable .class file

  3. Type "java [File_name]" to run the .class file

  4. "clear" clear all from console (Optional)