String[] aa = {
""
,
""
,
"ddd"
,
""
,
"asdf"
};
List<String> tmp =
new
ArrayList<String>();
for
(String str:aa){
if
(str!=
null
&& str.length()!=
0
){
tmp.add(str);
}
}
aa = tmp.toArray(
new
String[
0
]);