Each workbook is an exercise that challenges you to write code and run it.
Did you download the resources?
If you did not download the resources yet, return to the lesson: Workbooks and Challenges.
Launch Workbook 1.1
Java-Bootcamp-Resources, launch the
Workbook 1.1 folder.
Your file explorer should appear as follows:
If your file explorer looks like this, please go back and launch the correct folder.
FirstProgram.java, you will notice comments.
A comment follows two forward slashes
//. It has no impact on your code.
Make a class.
main(), print these messages to the console.
>> Printing is fun! >> Java > Python. >> I spilled Java all over my paper. >> My dog ate my Java.
Execute your code
>>: javac FirstProgram.java
>>: java FirstProgram
- You can use the up key (
↑) to run previous terminal commands.
- You can use the
tabkey to autocomplete:
The code solution is beside your starter project.
The video solution is inside the course’s appendix (last section on Udemy).