This project contains a variety of textbook Java examples and labs to accompany CodingNomads Java 101, Java 201, and Java 301 courses.
Please install the following before proceeding:
To get started with this project please follow these instructions:
- Clone the repository from your terminal:
$ git clone https://github.com/codingnomads/online-java-fundamentals.git
- Open IntelliJ IDE and choose "File -> New -> Project from Existing Sources"
- Navigate to the root folder of the project you just cloned. You should see the
src
folder and theREADME.md
- Click 'Open'
- Select the 'Create project from existing sources' radio button, then 'Next'
- Leave the name as is, click 'Next'
- If you are asked to overwrite the .iml file, select 'Yes'
- On the "Source files have been found" page, click 'Next' again - do not uncheck box
- On the "Libraries" page, just click 'Next'
- On the "Module Structure" page, just click 'Next'
- On the "SDK Selection" page, select '17'
- Click 'Create'
Your project is now created. Once loaded, you will see the directory structure on the left.
Now its time to run your first example!
- Click the down arrow on
online-java-fundamentals
to expand it. - Expand the
src
folder, then againlabs_examples.fundamentals
, and again onexamples
- Double-click on
Example1
to open it. - You can right click on the file and select 'Run' to run the code.
Many of the examples in this project are sourced from O'Reilly Media and are available free for download here.