Java Easy 1

🧠 Code Challenge


public class Main {
    public static void main(String[] args) {
        greet("Alice");
    }

    public static void greet(String name) {
        System.out.println("Hello, " + name + "!");
    }
}
  

Explain what this function does. Speak clearly and use keywords.