Workbook 2.2
From the Java-Bootcamp-Resources
, launch the Workbook 2.2
folder.
Did you download the resources?
If you did not download the resources yet, return to the lesson: Workbooks and Challenges.
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.
Task 2
Replace every placeholder with a variable.
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.
The video solution is inside the course appendix (last section on Udemy).
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.