How can I check if a list is empty? If so, the system has to give a message saying List is empty. If not, the system has to give a message saying Li
You should use method listName.isEmpty()
listName.isEmpty()