Question: Declare a constant named YEAR, and initialize YEAR with the value 2 0 5 0 . Task 2 : Edit the statement myNewAge = myCurrentAge
Declare a constant named YEAR, and initialize YEAR with the value
Task : Edit the statement myNewAge myCurrentAge currentYear so it uses the constant named YEAR.
Task : Edit the statement System.out.printlnI will be newAge in ; so it uses the constant named YEAR.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
