0
注意,BinarySearchTree類是net.datastructures 5.0出口BinarySearchTree條目列出
public static <K, V extends Comparable> List<Entry<K, V>> sortTree(BinarySearchTree<K, V> tree)
{
List<Entry<K, V>> entries = new ArrayList<Entry<K, V>>(tree.size());
entries.addAll(tree.entries());
我怎麼解決這個問題?
Error: The method addAll(Collection<? extends Entry<K,V>>) in the type List<Entry<K,V>> is not applicable for the arguments (Iterable<Entry<K,V>>)