Convert the following computer code from Python to Java.
public class Main {
    public static void greet(String name) {
        System.out.println("Hello, " + name + "!");
    }

    public static void main(String[] args) {
        greet("John");
    }
}
def greet(name):
  print(f"Hello, {name}!")
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.

### Instruction:
Convert the following computer code from Python to Java.

### Input:
def greet(name):
  print(f"Hello, {name}!")

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

    public static void main(String[] args) {
        greet("John");
    }
}