1HashMap<Node, Integer> x = qu.remove();
2// This "qu" is a queue which is returning a Hashmap
3// of type HashMap<Node, Integer> this hashmap contains
4// only one key,value pair
5Node node = x.keySet().iterator().next();
6// here we are extracting that "KEY" of hashMap into variable of Node type