All language subtitles for 1. Introduction to Lists

af Afrikaans
ak Akan
sq Albanian
am Amharic
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
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

1 1

(bright music) 2

2

(light typing) 3

3

In this section, 4

4

we're going to look at lists. 5

5

The list is an abstract data type and in the next video, 6

6

we're going to go over what an abstract data type is. 7

7

So a list isn't a concrete data structure, 8

8

it's an abstract data type. 9

9

And when it comes to abstract data types, 10

10

normally there's an interface involved 11

11

and list is no exception. 12

12

In Java, the lists that we're gonna look at in this section 13

13

all implement the java.util.list interface, 14

14

so that's what I have on this screen. 15

15

Classes that implement the list interface represent 16

16

an ordered collection also known as a sequence. 17

17

There are quite a few classes that implement list. 18

18

We're not gonna look at all of them. 19

19

We are gonna look at a few. 20

20

We're gonna look at array list. 21

21

We're going to look linked list. 22

22

We'll look at those two in this section. 23

23

We're also gonna look at vector. 24

24

There's also an abstract list class 25

25

and an abstract sequential list. 26

26

If you want to implement the list interface, 27

27

you want to create a custom implementation 28

28

rather than starting with list itself and implementing that, 29

29

it's a good idea to instead extend abstract list 30

30

and abstract sequential list 31

31

because there are scoledo implementations 32

32

of the list interface and so they kind of give you 33

33

a head start and all you have to do is override the methods 34

34

that you specifically want to implement 35

35

if you want custom behaviour. 36

36

So if you are going to implement a custom list, 37

37

its a good idea to extend one of these two classes. 38

38

So lets just look at a few of the methods in here. 39

39

You'll see we have add, so we can add items to the list. 40

40

We can check to see whether a list contains an object. 41

41

We can get an object from the list if we have its index. 42

42

We can find the index of an object in the list. 43

43

We can check whether a list is empty. 44

44

We can remove objects from the list. 45

45

We can find out using the size method 46

46

how many items are in the list 47

47

and we can get the array that's backing a list 48

48

and we're gonna see what that means 49

49

in the next couple of videos. 50

50

Now some of the classes we're gonna look at in this section, 51

51

like array list, you've probably worked with before. 52

52

Array list is a really popular class 53

53

but we're gonna dig a little deeper. 54

54

We're gonna actually look at some of the array list code 55

55

to see what's going on under the covers. 56

56

Okay, so when we're dealing with lists, 57

57

we're dealing with an ordered sequence, 58

58

so the data is organised sequentially 59

59

just as it is in an array and we're gonna see 60

60

in a couple of videos that a popular way to implement 61

61

the list interface is to use an array. 62

62

So let's move on now and take a quick look 63

63

at what an abstract data type is. 64

64

I'll see you in the next video.

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