Afrikaans
Akan
Albanian
Amharic
Arabic
Armenian
Azerbaijani
Basque
Belarusian
Bemba
Bengali
Bihari
Bosnian
Breton
Bulgarian
Cambodian
Catalan
Cebuano
Cherokee
Chichewa
Chinese (Simplified)
Chinese (Traditional)
Corsican
Croatian
Czech
Danish
Dutch
English
Esperanto
Estonian
Ewe
Faroese
Filipino
Finnish
French
Frisian
Ga
Galician
Georgian
German
Greek
Guarani
Gujarati
Haitian Creole
Hausa
Hawaiian
Hebrew
Hindi
Hmong
Icelandic
Igbo
Indonesian
Interlingua
Irish
Italian
Japanese
Javanese
Kannada
Kazakh
Kinyarwanda
Kirundi
Kongo
Korean
Krio (Sierra Leone)
Kurdish
Kurdish (Soranî)
Kyrgyz
Laothian
Latin
Latvian
Lingala
Lithuanian
Lozi
Luganda
Luo
Luxembourgish
Macedonian
Malagasy
Malay
Malayalam
Maltese
Maori
Marathi
Mauritian Creole
Moldavian
Mongolian
Myanmar (Burmese)
Montenegrin
Nepali
Nigerian Pidgin
Northern Sotho
Norwegian
Norwegian (Nynorsk)
Occitan
Oriya
Oromo
Pashto
Persian
Polish
Portuguese (Brazil)
Portuguese (Portugal)
Punjabi
Quechua
Romanian
Romansh
Runyakitara
Russian
Samoan
Scots Gaelic
Serbian
Serbo-Croatian
Sesotho
Setswana
Seychellois Creole
Shona
Sindhi
Sinhalese
Slovak
Slovenian
Somali
Spanish
Spanish (Latin American)
Sundanese
Swahili
Swedish
Tajik
Tamil
Tatar
Telugu
Thai
Tigrinya
Tonga
Tshiluba
Tumbuka
Turkish
Turkmen
Twi
Uighur
Ukrainian
Urdu
Uzbek
Vietnamese
Welsh
Wolof
Xhosa
Yiddish
Yoruba
Zulu
And this solution, we're going to quality control the movie class, starting with the constructor,
the caller should not be allowed to pass a name that is Neller Blank.
So if the name is null.
Or as blank.
We're going to throw a new illegal argument exception.
Name must contain a value.
We also need to check if the format doesn't equal DVD or Blu ray, so our condition is going to check
if format equals DVD.
Or if it equals the Blu ray.
Then we'll reverse it so that it checks if it doesn't equal DVD or Blu ray.
In which case, we're going to throw a new.
A legal argument, exception.
Telling the caller format must be DVD or Blu ray.
Also, ratings can only go from zero to 10, so we can't allow the color to pass in a negative rating
or one that exceeds 10.
So if rating is smaller than zero.
Or if it's bigger than 10.
We're going to throw a new illegal argument exception.
Invalid rating.
OK, now we need to quality control our methods, starting with name, the colour should not be allowed
to update an object with a name that is blank.
So if name is equal to null.
Or if it's blank.
Through a new.
A legal argument, exception.
Inside format will throw an exception of the format they passed isn't DVD or isn't Blu ray?
And inside rating, we're going to check if the rating is less than zero.
Or higher than 10.
In which case, we need to throw another illegal argument, exception.
And that's all for quality control, these methods and constructor are going to forbid the caller from
misusing them.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.