| keys() | ใช้คืนค่า key ทั้งหมด ที่มีใน Dictionary |
|---|
method:keys ();
return type:Enumeration
content:ใช้คืนค่า key ทั้งหมด ที่มีใน Dictionary
example:Dictionary dictionary = new Dictionary (); dictionary.put ( "bamboo", "ไม้ไผ่" ); dictionary.put ( "lab", "ห้องปฏิบัติการ" ); dictionary.put ( "code", "รหัส" ); Enumeration enumeration = dictionary.keys ();