2013年12月11日

design a text edit

摘要: rope (data structure) + KMP(string search) O(m+n) 阅读全文

posted @ 2013-12-11 03:17 brave_bo 阅读(173) 评论(0) 推荐(0)

局部内部类为什么只能访问final局部变量?

摘要: 局部内部类为什么只能访问final局部变量?分类:Java2012-01-07 14:03874人阅读评论(1)收藏举报stringthreadclassjava[html]view plaincopy//只有定义成finalStringobj才不会报错publicvoidtest(finalStringobj){ThreadmyThread=newThread(){publicvoidrun(){System.out.println(obj);}};myThread.start();}[html]view plaincopypublicclassOuterClass{publicvoidou 阅读全文

posted @ 2013-12-11 02:50 brave_bo 阅读(495) 评论(0) 推荐(0)

导航