Question: Why is this error showing NewAge2.java:17: error: cannot find symbol newAge = currentAge + (YEAR - currentYear); ^ symbol: variable YEAR location: class NewAge2 NewAge2.java:23:

Why is this error showing NewAge2.java:17: error: cannot find symbol newAge = currentAge + (YEAR - currentYear); ^ symbol: variable YEAR location: class NewAge2 NewAge2.java:23: error: cannot find symbol System.out.println("I will be " + newAge + " in "+YEAR+"."); ^ symbol: variable YEAR location: class NewAge2 2 errors Error: Could not find or load main class NewAge2

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!