All language subtitles for 047 Contacts – Part 5 (Solution)_en

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English Download
eo Esperanto
et Estonian
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fr French
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian Download
is Icelandic
ig Igbo
id Indonesian
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (Soranî)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
fa Persian
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu

Original subtitles

And this solution, we're going to quality control the manager class, almost every bad invocation of

a method or constructor is because the caller passed an illegal arguments or called the method that

about time.

So looking at the code, I can't think of any illegal arguments the user may pass that haven't been

accounted for because the constructor doesn't receive any parameters.

So there's nothing to really check and hear.

If the user passes a null instead of an actual object, the code would already throw a null pointer

exception.

So throwing in a legal argument exception would be redundant.

The same argument can be made for ad contact and remove contact.

What about illegal state exceptions?

Remember that illegal exceptions occur when an object calls its method at a bad time.

What about ad contact?

If there was a maximum number of contacts that you can store, then you could throw an illegal state

exception for that particular scenario.

But if you were to go back and read the requirements, there is no limit to the number of contacts that

you can add.

Although an object would not be in a valid state to call or remove contact if the Israelis, it is empty,

if there are no contacts to remove now, array lists have an empty method that returns true if it has

no elements.

So we'll check if contact.

That is empty.

And in such a case will throw a new illegal -- exception.

You can't call the remove method if there are no contacts to remove.

OK, I can't think of any more safety checks that we need to apply so we can wrap up right here.

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.