java
文章平均质量分 78
所有昵称都被用了呢
在看coursera的text retrieval and search engines. 发现好难坚持。。。。。回家就想睡觉。。。。。。1个月过去了。。。还在week3
展开
-
【转】Abstract class vs interface
Q: In Java, under what circumstances would you use abstract classes instead of interfaces? When you declare a method as abstract, can other nonabstract methods access it? In general, could you explain转载 2014-11-14 02:40:24 · 402 阅读 · 0 评论 -
JAVA package 问题记录
遇到的问题:在/..../list/DList.java compile已过。DList.java 属于 package list 报错:java DList Exception in thread "main" java.lang.NoClassDefFoundError: DList (wrong name: list/DList) at java.lang.ClassLoader.def原创 2014-11-14 02:40:21 · 454 阅读 · 0 评论 -
LFU cache Java
public class LFUCache { HashMap hashtable = new HashMap(); int column; PriorityQueue priorityQueue; public LFUCache(int capacity) { column = capacity; KeyVa原创 2016-07-24 11:53:36 · 664 阅读 · 0 评论