Creating a JAR File (IntelliJ)
1.) Go to File → Project Structure → Artifacts → JAR → “From modules with dependencies”
2.) Click OK a couple of times
3.) Click Build → Build Artifacts (this will create a JAR file in a folder called “Artifacts”)
4.) Distribute this JAR file to other Java programmers, who can now import it into IntelliJ (or otherwise)
:::danger JAR files do not keep your code safe, and thus you should not share your .jar files of your projects with other students. :::