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