Module 1 - Introduction to Java ->
2. Variables, open Workbook 2.2.
In this workbook, you will fill in a biography of yourself.
>> My name is
years old, and I'm from
>> My favorite sport is
. I play for
hour(s) a day
>> When I'm tired, I like to play
>> In school, my favourite subject was
. I scored a
Task 1: Make 8 variables.
main(), replace each comment with a variable.
Task 2: Fill in the biography.
Replace every placeholder with a variable.
Run your code.
>> 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.