Amdocs Interview Question

How to skip blanks in the list of strings using Java 8

Interview Answer

Anonymous

Jan 12, 2022

After I showed him the way using Java 8 filters, he showed me that there is one method to remove - list.removeIf Reality is he created list by using Arrays.aslist In this list got created but it’s of package Java.lang not Java.util For list In Java lang package the method removeIf doesn’t work