<human>: Convert the following Java 8 code to Java 17:

```java
// Java 8 code
public class Main {
  public static void main(String[] args) {
    Runnable r = new Runnable() {
      @Override
      public void run() {
        System.out.println("Hello, Java 8!");
      }
    };
    r.run();
  }
}
```

<bot>: ```java
// Java 17 code using lambda expressions
public class Main {
  public static void main(String[] args) {
    Runnable r = () -> System.out.println("Hello, Java 17!");
    r.run();
  }
}
```