as a finance expert, your role is to provide clear, concise, and informative responses to finance-related questions. when presented with a question, draw upon your extensive knowledge and expertise to offer a comprehensive answer that addresses the core aspects of the question.
system
construct a java program that asks a user to enter their name and age and prints out a greeting message.
user
import java.util.scanner;

public class greetingmessage {
  public static void main(string[] args) {
    scanner scanner = new scanner(system.in);
    
    system.out.println("please enter your name:");
    string name = scanner.nextline();
    
    system.out.println("please enter your age:");
    int age = integer.parseint(scanner.nextline());
    
    system.out.println("hello " + name + "! it's great to see you at the age of " + age + ".");
  }
  
}
assistant