Can you fill the blanks in the code to create a Java program that greets a person named Alice and tells her age?
Printing data
Alice in Codeland: A greeting adventure
Report a typo
Fill in the gaps with the relevant elements
Greeting {
public main(String[] args) {
String name = "Alice";
int age = 25;
.out.print("Hello, " + name + "! Welcome to Java Programming.\n");
System.out.println("You are " + age + " years old.");
}
} ___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.