【Description】
A queue is a collection that implements the first-in-first-out protocal. This means that the only accessiable object in the collection in the first one that was inserted. The most commo...
分类:
其他好文 时间:
2014-08-10 21:43:10
阅读次数:
236
Statements: This blog was written by me, but most of content is quoted from book【Data Structure with Java Hubbard】
【Description】
This simulationillustrates objectoriented programming...
分类:
其他好文 时间:
2014-08-10 21:42:20
阅读次数:
450
A stack is collection that implements the last-in-first-out protocal.This means that the only access object in the collections is the last one thatwas inserted.The fundamental operations of a stack a...
分类:
其他好文 时间:
2014-07-29 14:53:28
阅读次数:
218
Do you know how to init list in other way except for new object? The following will give you serveral tips. If having other great idea, you are welcome to share.
import java.util.ArrayList;
import j...
分类:
编程语言 时间:
2014-07-22 14:37:43
阅读次数:
211
In an attempt to remove duplicate elements from list, I go to the lengths to take advantage of methods in the java api. After investiagting the document of java api, the result is so satisfying that...
分类:
编程语言 时间:
2014-07-18 14:02:00
阅读次数:
282
Faced with the upcoming exam, Some useful methods referred to file operation drew tremenous attention. Now I make a summary to reading file.
import java.io.BufferedReader;
import java.io.BufferedWri...
分类:
其他好文 时间:
2014-07-18 12:26:25
阅读次数:
274
In this blog, generic collections will be talked about in details. In the past bacause of shortage of generic argument, less importance has been attached to the this module. Just now after
readin...
分类:
其他好文 时间:
2014-07-15 12:45:00
阅读次数:
253
In the Java collection workframe, there are three similar methods, addAll(),retainAll() and removeAll(). addAll(), the retainAll(), and the removeAll()methods are equivalent to the set theoretic unio...
分类:
其他好文 时间:
2014-07-13 16:43:15
阅读次数:
268
The Java Connections FrameWork is a group of class or method and interfacs in the java.util package. Its main purpose is to provide a unified framework for implementing common data structure. A collec...
分类:
编程语言 时间:
2014-07-13 13:43:20
阅读次数:
218
Method 1: Add one list into the other list.
For example, if list1is {22, 33, 44, 55} and list2 is {66, 77, 88, 99},then append(list1, list2)will change list1to {22, 33, 44, 55, 44, 66, 77, 88, 99}.
...
分类:
其他好文 时间:
2014-07-08 16:18:22
阅读次数:
196