Java-Methods-exercise
Exercise Number: 1
Question
Write a Java program that defines a method greetUser(String name) which prints a welcome message for the given name.
Example
If the input is "Rohan", the output should be:
Hello, Rohan! Welcome to Java.