I know how to do this for numeric datatypes but please tell my for string arrays.
Say I have a string array of 10 elements in java. Some elements contain words but others contain NOTHING.
How do I run a for loop which prints only the non empty elements?
x[i].equals(null)
is never going to betrue