Starter Code

  • Open a Java project in IntelliJ.

Download the starter code from here. The starter code is a zip file named sample-starter.zip. You must unzip this file. After unzipping, you will get a folder called sample-starter. Open this folder as an IntelliJ project.

After the project is loaded in IntelliJ, you can open the "Project View" to see the folder structure of the starter code.

There are several folders and files in the starter code. The structure is kept with how build tools like Maven and Gradle organize Java projects. However, in this course, you will not be using any of those build tools. You will be working primarily with files inside src/main/java/ and src/test/java/ folders. For example, there is a HelloWorld.java file in src/main/java/starter. You can double-click on this file to open it.

Resources

Suppose this is the first time you are working with IntelliJ. In that case, I recommend watching this four minutes long YouTube video, Running IntelliJ IDEA for the First Time. It's a little outdated but shows you how to create your first Java application in IntelliJ IDEA. Then, see how to select a JDK to compile the application. And find out where to access and change the project settings.

You may also find this cheatsheer helpful! It contains IntelliJ's shortkeys for various operating systems.