Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.*;
- public class ComputeIfAbsent {
- public static void main(String[] args) {
- Map map = new LinkedHashMap();
- map.computeIfAbsent(42, ArrayList::new);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement