![]() |
VOOZH | about |
public boolean isEmpty()Parameters: The function does not accepts any parameter. Return Value: The function returns true if the list is empty, otherwise it returns false. Below programs illustrate the above function: Program 1:
CopyOnWriteArrayList: [32, 67, 98, 100] List is not empty List is empty
CopyOnWriteArrayList: [gopal, gfg, jgec, sudo] List is not empty List is empty