I have a HashMap with multiple values at runtime. In that map one key has empty value , how to avoid this value to add in a list. some code sample is below:
I do not want to add the empty value in a list please suggest me in a right way.
result in map
result in List