What are the two statements that check if myList is empty?

myList.isEmpty()myList.size() == 0myList.length == 0myList[0] == null

Exactly! We can find out by checking if size() equals 0 or, simpler, with isEmpty(). Arrays, on the other hand, have a length property.

Oh noes! We can find out by checking if size() equals 0 or, simpler, with isEmpty(). Arrays, on the other hand, have a length property.