วันจันทร์, พฤษภาคม 30, 2548

ใช้อันไหนดี ArrayList, LinkedList หรือ Vector

โดยทั่วๆไป ArrayList น่าจำเป็นคำตอบที่ดี(เร็ว) ในหลายๆ กรณี.
หากต้องการ Synchronized List ก็ให้ใช้ Vector.
รายละเอียดเพิ่มเติม ที่ Performance of Java Collections that implements the List - Interface

ไม่มีความคิดเห็น: