How to remove null value from String array in java?
String[] firstArray = {\"test1\",\"\",\"test2\",\"test4\",\"\"};
I need the \"firstArra
A gc-friendly piece of code:
public static X[] arrayOfNotNull(X[] array) { for (int p=0, N=array.length; p
It returns the original array if it contains no nulls. It does not modify the original array.