isEmpty() doesn’t check if a list is null . If you are using the Spring framework you can use the CollectionUtils class to check if a list is empty or not.22 Mar 2016
isEmpty() doesn’t check if a list is null . If you are using the Spring framework you can use the CollectionUtils class to check if a list is empty or not.22 Mar 2016