0

what is the missed?

public class Program { public static void main(String[] args) { //declare variables String name = "Howard"; /* declare the age int age = 42; */ //output values //System.out.println(name+" is "+age+" years old."); } }

17th Jan 2023, 2:19 PM
Ambelye Cherkos
Ambelye Cherkos - avatar
1 Answer
+ 3
What does the error message say? Read it. "age" is not declared. The output is commented. Check the commented sections of the code.
17th Jan 2023, 2:23 PM
Lisa
Lisa - avatar