Setup Lesson 2
Using IntelliJ
Author: Brandon Fajardo (4/8/17). Updated (3/5/19)
Introduction
Review: At this point, you should have all the programs you need to be able to code in Java. *There are three.
Lesson topic: What we will do now is create a place to code.
Topic 1 - Making a New Project
If you haven’t already, open IntelliJ. In IntelliJ, we must first create a Project. A project is like a giant “folder” where we keep all of our coding files. In the future, you can create any number of projects, but for now, we will make just one to work with. To make a new project, click File (top left), New, Project. You don’t need to modify anything in this project except its name. You can name the Project almost anything. I suggest “Learning,” or some other name that you can easily recognize (rather than a random jumble of characters). *For future reference, you can open your recent projects by clicking File, Open Recent, and your project’s name. Now, you have a project! Time to add things.
Topic 2 - Making a New Class
Now, we will make our very first Class! Open your project, right-click on src (source), New, Java Class. Generally, the first class is named “main”, but it can be named any string of letters. For example, you may again name this class “Learning” or “FirstLesson”.
*Names of things shouldn’t have any spaces.
*The use of some characters are restricted for various reasons.
*Avoid using gibberish. Use a name that is simple to understand and use in code.
Conclusion
Recap: Now that you have a class, you will be able to start coding.
Next: Check my lesson notes to begin coding by learning data types.
Last updated