the method of my program return rows with some values... now i need to use condition of values to show. in this case its returning conditional values including null rows.
how can i remove null rows from arrays ?
Code:
public String[][] process(String searchName, String value){
..
String[][] row=null;
Map<String, File> names = new HashMap<String, File>();
try{
..
...
row = new String[names.keySet().size()][];
int i = 0;
for (String found: names.keySet()) {
..
..
if(file.length()>1024){
row[i] =new String[]{found, file.getName(), Long.toString(file.length())};
i++;
}
}
catch(Exception e) {e.printStackTrace() }
return row;
