Java Bootcamp – Workbooks and Challenges
)}

Workbook 2.2

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

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

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

My Biography

In this workbook, you will fill in a biography of yourself.

>> My name is <name>. I'm <age> years old, and I'm from <country>.

>> My favorite sport is <sport>. I play for <hours> hour(s) a day

>> When I'm tired, I like to play <game>.

>> In school, my favourite subject was <subject>. I scored a <grade>.

Task 1

Inside main(), replace each comment with a variable.

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

Task 2

Replace every placeholder with a variable.

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

Result

>>: My name is Sam. I'm 35 years old, and I'm from England.
>>: My favourite sport is Basketball. I play for 2 hour(s) a day
>>: When I'm tired, I like to play Checkers.
>>: In school, my favourite subject was Chemistry, I scored a B.

Solution

The code solution is beside your starter project.

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

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

Screen Shot 2022-10-10 at 7.31.47 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.