TreeMap.keySet Method
来源:互联网 发布:淘宝退款介入在哪里 编辑:程序博客网 时间:2024/05/16 01:53
Retrieves the set of keys in a TreeMap object.
Package: java.util
Assembly: vjslib (in vjslib.dll)
Return Value:
The set of keys contained in the TreeMap object.
Example:
In this example, you create and initialize a TreeMap object, and then you display the keySet contained in the object.
Package: java.util
Assembly: vjslib (in vjslib.dll)
- public java.util.Set keySet();
public java.util.Set keySet();
Return Value:
The set of keys contained in the TreeMap object.
Example:
In this example, you create and initialize a TreeMap object, and then you display the keySet contained in the object.
- // TreeMap-keyset1.jsl
- // TreeMap.keySet example
- import java.util.*;
- public class MyClass
- {
- public static void main(String[] args)
- {
- // Create a TreeMap object:
- TreeMap tm = new TreeMap();
- // Add some elements:
- tm.put("3","Sally Abolrous");
- tm.put("2","Craig Combel");
- tm.put("5","Pille Mandla");
- // Remove the key set:
- System.out.println("The key set is: " + tm.keySet());
- }
- }
- /*
- Output:
- The key set is: [2, 3, 5]
- */
- TreeMap.keySet Method
- Map集合 键值对 映射关系 Hashtable HashMap TreeMap keySet entrySet Map.Entry
- TreeMap
- TreeMap
- treeMap
- TreeMap
- TreeMap
- TreeMap
- TreeMap
- TreeMap
- TreeMap
- treemap
- treemap
- TreeMap
- TreeMap
- treemap
- -TreeMap
- TreeMap
- @Table,@Column等注解失效
- JDBC获取新增记录的自增主键
- 半个多世纪以来全球软件产业的发展历史
- FHKSEORIKHMV
- org/apache/juli/logging/LogFactory
- TreeMap.keySet Method
- Ubuntu下搭建Tomcat服务器
- date.gettime()返回的是什么?
- PHP Java Socket 通信
- java使用xfire创建和调用webservices
- date.gettime()返回的是什么?
- 黑马程序员 方立勋JavaWEB视频 第04天 web开发入门笔记
- Java的字符流和字节流 比较
- VC通用控件编程之CProgress控件