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

```java
// Java 8 code
CompletableFuture.supplyAsync(() -> {
  return "Task completed";
}).thenAccept(result -> {
  System.out.println(result);
});
```

<bot>: ```java
// Java 17 CompletableFuture with compact syntax
CompletableFuture.supplyAsync(() -> "Task completed")
  .thenAccept(System.out::println);
```