Java Bootcamp – Workbooks and Challenges
)}

Workbook 1.1

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.

Screen Shot 2022-10-13 at 5.48.30 PM.png

Launch Workbook 1.1


From the Java-Bootcamp-Resources, launch the Workbook 1.1 folder.

Your file explorer should appear as follows:

Screen Shot 2022-10-07 at 3.57.13 PM.png

If your file explorer looks like this, please go back and launch the correct folder.

Screen Shot 2022-10-07 at 3.54.59 PM.png

Comments

Inside FirstProgram.java, you will notice comments.

Screen Shot 2022-10-30 at 8.31.25 PM.png

A comment follows two forward slashes //. It has no impact on your code.

Task 1


Make a class.

Task 2


Write the main() method.

Task 3


Inside 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

Expected Result

Reminder


  • You can use the up key () to run previous terminal commands.
  • You can use the tab key to autocomplete:

Solution

The code solution is beside your starter project.

Screen Shot 2022-10-10 at 11.51.25 PM.png

The video solution is inside the course’s appendix (last section on Udemy).

Screen Shot 2022-10-07 at 7.42.56 PM.png

Good Luck!


Associated Course: The Complete Java Development Bootcamp
Related Course: The Complete Spring Boot Development Bootcamp – Become a Java Web Developer

Feedback Summary
4.7
43 students
5

91%
4

2%
3

0%
2

0%
1

7%
Written Reviews
There are no written reviews yet.