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 2050.
Task 2: Edit the statement myNewAge = myCurrentAge +(2050 currentYear) so it uses the constant named YEAR.
Task 3: Edit the statement System.out.println("I will be "+ newAge +" in 2050."); 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!