All language subtitles for 013 Movie Store – Part 3_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
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
th Thai
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

The solution is going to cover part three.

The second test case tells us that if a movie is removed after being sold, so write a unit test named

sell movie test.

And the movie we're going to sell is The Shawshank Redemption.

So ideally, calling cell should remove this object from the array list.

All right, and now we'll need to make an assertion.

Assert false, and this test will pass a Astorga that contains The Shawshank Redemption returns false.

And now inside Staudt Java, we can write code to make the test fail.

Public Void Cell Movie.

And the unit test implies that we need to pass a string into our method.

And for now, we'll do nothing, I want my test to fail.

And it does good now we need to write code to make the test pass.

The simplest code I can think of is to just create a loop that runs through the size of the array list.

And if the name of the movie object at the index.

Matches the name being Pastan.

Then we'll remove the movie and index I.

Let's run the test.

And it passes.

Here, it removes the movie and our assertion passes because the story doesn't contain it anymore.

OK, here comes the most important question can this be a refactored, can it be made simpler?

And the answer to that is absolutely loop's are really messy.

And since Java eight aerialists and call a remove F method.

They stop movies that remove if.

The remove, if once a predicate, a predicate is something that is true or false.

So that means our lambda expression is going to receive every element as a parameter.

Remember that every lambda expression has an arrow that points to a piece of code.

Where we need to return a boolean and we're going to return a boolean that checks, if the string of

the element we're running through is equal to the name parameter.

And as you can see, using a functional approach is more elegant than using loops.

And as we refactor, we always have to run the unit test to make sure that the new could be added does

not have any bugs and perfect the test passes.

Now, once again, can we refactor?

That's a question you have to keep asking yourself until you're absolutely certain that your code is

as simple as it's going to get in this case.

Yes, if the code is only one line, then you can remove the curly brackets as well as the return keyword.

And Jeff is going to know you intend on returning a boolean.

That's kind of cool if you ask me.

OK, I'll run the unit test.

And beautiful, the unit test passes, so I know that my code is working as intended now.

Once again, can we refactor?

Nope, we can move on to the next unit test.

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