The collection class in Java.util contains some of the most commonly used classes in Java. The most commonly used collection classes are List and Map. The specific implementations of list include ArrayList and vectors, which are variable size lists that are more suitable for building, storing, and manipulating any type of object element list. The List applies to situations where an element is accessed by a numeric index.
MAP provides a more general method of element storage. The Map collection class is used to store element pairs (called "Keys" and "values"), where each key maps to a value. Conceptually, you can view the List as a Map with numeric keys. In fact, there is no direct link between the List and Map, except for the definitions of Java.util and Chinese. This article focuses on the map included in the core Java release suite, and also describes how to adopt or implement a dedicated map that is more appropriate for your application-specific data.
After you know the map in Java, go directly to the code.
<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
After-run effect chart:
This article downloads the address: http://download.csdn.net/detail/xmt1139057136/7076495