import java.util.HashMap;
import java.util.Map;

public class JI9055859 {

	public static void main(String[] args) {
		Map<String, String> cache = new HashMap<>(); 
		cache.computeIfAbsent("dep2", ignored -> { 
			cache.computeIfAbsent("dep1", ignored2 -> "dep1_value"); 
			return "dep2_value"; 
		}); 
		System.out.println(cache.get("dep1")); 
		System.out.println(cache.get("dep2")); 

	}

}
