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.