08 2014 档案

摘要:Parent interface of Collection: Iterable InterfaceA class that implements theIterablecan be used with the new for-loop.TheIterableinterface has only o... 阅读全文

posted @ 2014-08-26 18:40 chayu3 阅读(335) 评论(0) 推荐(0)

摘要:An index is used to speed up searching in the database.By default, when you create this table, your data will be stored on disk and sorted by the "Id"... 阅读全文

posted @ 2014-08-25 21:20 chayu3 阅读(173) 评论(0) 推荐(0)

该文被密码保护。

posted @ 2014-08-22 19:01 chayu3 阅读(4) 评论(0) 推荐(0)

摘要:1, LinkedListcomposed of one and one Node: [data][next].[head] ->[data][next] ->[data][next] ->[data][next] -> [null].Empty linkedList: head == null.V... 阅读全文

posted @ 2014-08-21 22:11 chayu3 阅读(134) 评论(0) 推荐(0)

摘要:1, Binary SearchOn sorted array!public static int binarySearch(int e, int[] array, int low, int high) { while(low array[mid] && e array[low]) ... 阅读全文

posted @ 2014-08-21 21:58 chayu3 阅读(106) 评论(0) 推荐(0)

摘要:Time complexity:Binary search O(log2 n):i=0. n elements: -------------------i=1. n/2 elements: ----------i=2. n/4 elements: ... 阅读全文

posted @ 2014-08-21 21:51 chayu3 阅读(209) 评论(0) 推荐(0)

摘要:1, Process&ThreadsMost implementations of the Java virtual machine run as a single process.Threads exist within a process — every process has at least... 阅读全文

posted @ 2014-08-19 22:42 chayu3 阅读(301) 评论(0) 推荐(0)

摘要:For every type of object, the Java virtual machine instantiates an immutable instance ofjava.lang.Classwhich provides methods to examine the runtime p... 阅读全文

posted @ 2014-08-13 23:43 chayu3 阅读(98) 评论(0) 推荐(0)

摘要:除了Java collection class/interface外,方便的有Google guava的utility class: Lists/Sets/Maps/Queues, 用它们可以方便地创建List等object。List list = Lists.newArrayList(); or ... 阅读全文

posted @ 2014-08-13 22:43 chayu3 阅读(200) 评论(0) 推荐(0)

摘要:SSH, SecureSHell, was designed and created to provide the best security when accessing another computer remotely.Not only does it encrypt the remote s... 阅读全文

posted @ 2014-08-12 17:17 chayu3 阅读(120) 评论(0) 推荐(0)

摘要:Good about Java:friendly syntax, memory management[GC can collect unreferenced memory resources], object-oriented features, portability.StackStores me... 阅读全文

posted @ 2014-08-08 22:03 chayu3 阅读(203) 评论(0) 推荐(0)

摘要:Define routes:Either using Spring xml or Java DSL.Spring xml: //to load the Java DSL routes defined in MyRouteBuilder class //to load the routes... 阅读全文

posted @ 2014-08-08 21:12 chayu3 阅读(278) 评论(0) 推荐(0)

摘要:UNIX is a multi-user multitasking-optimized operating system that can run on various hardware platforms.Linux is basically an open-source clone of UNI... 阅读全文

posted @ 2014-08-07 22:35 chayu3 阅读(404) 评论(0) 推荐(0)

摘要:个人理解:定义.proto文件就是指明消息里包含的成员和类型,protoc会compile成相应的java文件包含interface和implementation class,然后在构建message的时候要使用builder,然后写到outputstream里。应用实例:ByteArrayOutp... 阅读全文

posted @ 2014-08-05 22:16 chayu3 阅读(245) 评论(0) 推荐(0)