The conversation between human and AI assistant.
[|Human|] Convert the following computer code from Python to Java.
[|AI|] public class Main {
    public static void greet(String name) {
        System.out.println("Hello, " + name + "!");
    }

    public static void main(String[] args) {
        greet("John");
    }
}
[|Human|] 
Convert the following computer code from Python to Java.