๋ชฉ๋กCollection (1)

๐ŸŒฑ โ†’ ๐ŸŒณ

[Java] Collection ๊ตฌ์กฐ ์ •๋ฆฌ

1. Collection Interface Iterator ์ธํ„ฐํŽ˜์ด์Šค๋ฅผ ์ƒ์†ํ•œ Collection์€ ๊ฐ€์žฅ ๊ธฐ๋ณธ์ด ๋˜๋Š” ์ธํ„ฐํŽ˜์ด์Šค๋กœ add(), size(), iterator() ๋ฉ”์†Œ๋“œ๋ฅผ ๊ฐ€์ง€๊ณ  ์žˆ๋‹ค. Collection ์ธํ„ฐํŽ˜์ด์Šค List์™€ Set ์ธํ„ฐํŽ˜์ด์Šค์˜ ๋งŽ์€ ๊ณตํ†ต๋œ ๋ถ€๋ถ„์„ Collection ์ธํ„ฐํŽ˜์ด์Šค์—์„œ ์ •์˜ํ•˜๊ณ , ๋‘ ์ธํ„ฐํŽ˜์ด์Šค๋Š” ๊ทธ๊ฒƒ์„ ์ƒ์†๋ฐ›์Œ P.S Collections๋ž€? Collection์ธํ„ฐํŽ˜์ด์Šค์™€ ๋‹ฌ๋ฆฌ Java 1.2์ด์ƒ๋ถ€ํ„ฐ Collections๋ผ๋Š” staticํด๋ž˜์Šค๊ฐ€ ์กด์žฌํ•จ Collections ๋Š” ์ปฌ๋ ‰์…˜ ํ”„๋ ˆ์ž„์›์— ์†ํ•˜๋Š” ํด๋ž˜์Šค๋ฅผ ์ง€์›ํ•ด์ฃผ๋Š” ๋‹ค์–‘ํ•œ ๋ฉ”์†Œ๋“œ๊ฐ€ ์กด์žฌ Collection์ด๋ž€ ๋ง๋Œ€๋กœ ๋ฐ์ดํ„ฐ์˜ ๊ทธ๋ฃน ์ง‘ํ•ฉ์ฒด๋ผ๋Š” ์˜๋ฏธ๋ฅผ ๊ฐ€์ง„๋‹ค. ์ž๋ฐ”์— Collection ์ž๋ฃŒ๊ตฌ์กฐ๋Š” ํฌ๊ฒŒ Lis..