mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-20 11:36:16 +07:00
9 lines
197 B
Java
9 lines
197 B
Java
// "Replace 'stream().forEach()' with 'ifPresent()'" "true"
|
|
|
|
import java.util.Optional;
|
|
|
|
public class Main {
|
|
public void test(Optional<String> opt) {
|
|
opt.ifPresent(System.out::println);
|
|
}
|
|
} |