Arrays Flashcards

1
Q

Array

A

Estructura de datos que permite almacenar múltiples valores en una sola variable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Array estático

A

Tiene un tamaño fijo al crearlo que NO puede cambiar tras la inicialización

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Array dinámico

A

Es un ArrayList, su tamaño puede modificarse durante la ejecución

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

nombres.size()

A

Número de elementos del array

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

nombres.add()

A

Añade elemento

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

nombres.get(X)

A

Devuelve elemento en posición X

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

nombres.remove()

A

Elimina elemento

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

nombres.clear()

A

Elimina TODO

How well did you know this?
1
Not at all
2
3
4
5
Perfectly