ArrayList and Methods Flashcards

(4 cards)

1
Q

How do I set something equal to a new ArrayList?

A

= new ArrayList< Type>();

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

What are the types of ArrayLists?

A

Integer, Boolean, Double, etc.

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

How do you set a value at an index?

A

type set(int index, type value)

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

How do you get the size of an ArrayList?

A

name.size()

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