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