HashMap<String,Object> other = new HashMap<>();
new ArrayList<String>().stream().map(s -> new HashMap<String, Object>() {{
}}).findFirst().orElse(other);
Stream.generate(() -> new HashMap<String, Object>()).findFirst().orElse(other);
The second statement of the code has a compilation error
Please tell me where there is a problem