Advertisement
Guest User

Untitled

a guest
Apr 26th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. import java.util.*;
  2.  
  3. public class ComputeIfAbsent {
  4. public static void main(String[] args) {
  5. Map map = new LinkedHashMap();
  6. map.computeIfAbsent(42, ArrayList::new);
  7. }
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement