Alice in Codeland: A greeting adventure

Report a typo

Can you fill the blanks in the code to create a Java program that greets a person named Alice and tells her age?

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.");
    }
}
___

Create a free account to access the full topic