To find out how many items there are, use the size method:

Example

cars.size();



Practice Excercise Practice now