blob: fe05200b44ee67c38fa5f92e135d2bec28d5007f [file]
// "Replace 'stream().forEach()' with 'ifPresent()'" "true"
import java.util.Optional;
public class Main {
public void test(Optional<String> opt) {
opt.ifPresent(System.out::println);
}
}