Collection Notes
Collection Notes
Vcalechia (oup
cOllechah is a fameoYk aich has
eadily avalade Logje ,-to cleal wh dytesent
data sbucuses .
Ls CIubfaa )
Aanayuli
Vect
bask efnana
DEadvautag Ahsertion dat belween
ln porformaner
Date
padkage colechoeapleA;
public clas A
20
xa o) Boi
k. add (20):
n Arraylia
in t .
we Can Stoe
Aakyenasu data
pakage laha eaples,
pukic clag A2
3 add ( Paukaf
x add (bue)
SOP LL)
paekage Collechoh~ekahple
impoftgava. uhl. Anaylist;
puhlic clas A2
yadd (300)
4 add(502;
Xo addAU (2,);
Sop add AuC lnde, collechoh ) hetud )"+x);
Y. ehove (1)
D)
SOP ( behove ( index ) hehod (): t*);
Aguioc
Dsadvankage:
-
dojeut
Value
due
Qddr Sindy
test the be
o then hertee be tb heoe s deho Linked:
tal doheae
it.hext
): :"+ SoeCvaueg
Arayid
value de ad Can hoo Dlerator
naed):"+L) Cinda)SoP(emove I|
/2Chove(|)
Readng Inda
ah. m data humberr
lhe
)2o Date
iele
Yes
:"tx); helhal) colectch) (inda, Sop("add Au
(2,4): adqAt
(So), add
(3o). 4-add
is<Inkeges>
0;t: (tndexvaue)
methed Sop("add
addU,
Sto)
"+x.S2e.J)
(3D Add
20), addl X
regers; <ThhegerClo add LIst x
clA
acs puslic
tanl
ad
ValuoAdr S/enos
Jar,
pohe no Kaalye doubly'
Date inkaiK doutly
lenentey nenaly dnaig allechen In, Nole-:
Jdk
Date
Sop(Lget4);
Terctor tr=. iterator ()
dil (it .has lact())?
Sop
Y: add (30)
I- add Ao):
QddLae (o),
addlas(20),
Xacdd C4S0.
SOPl).
|whial size
ull 7s Jhen oloude 2e 32
Date 20
-wtt
whese e are
Hasuig dha fom
hasa cete melee
h
Java pxceu jhsidde
Cocle
Hattetle dae in AMa
aso ciakelaney whes
3. Hast table ah
Aoccd a halue
velues
heinbey.
Date 9 / 20
Hash Sel V|s Hash TakAe vt
kacknep
L'st
Callech Ch fmanok )
2. Linkedisl
Set
2. Treeel
Agt LinkedLis Hadiel- Treeel
Queue
Noe: ap is
Map a TueraLa shich coes ho
itbelarga
to
calechion, Te seerate ntefaca Qel s
nplenestad hy hatmap
Seti>_
2.
nsext an Oder
coVdain duplicate
2.
kadh-tae mternally
data tuto databe
3. Tt Cedain
4. Does maiudajn ihgestc cdes.
5 his clas Pernk he eleheut:
public
Ordes
clas A?
de-dig
Tree Sel<Duteger treeSel= ho
Eresel-. add (3o) TreeSet<o
tree Set.add (so).
tree Set. add (lo)
treebet . qdd (33)
C20,30,33, luo
SOP (treSet);
Date
Sam
loo!, Lo2
haslTable) SopC
(o,Shih" putTae. hash
hashtabe=
hes Shahg<Lutger, Hasktable
{A
class publc
ekanples; set- paukage
Hadmap
Toe ladh
stake eHask 2
value
couent Jhe
rap soel D Table Hac
Date