使用likedhashmap实现(内部结构extends hashmap+双向链表) public class LRUCache{ LinkedHashMap<Integer, Integer> sh; public LRUCache(int capacity) { sh=new ...
確定! 回上一頁