String filter = "("; Iterator itr = exts.iterator(); while (itr.hasNext()) { String ext = (String)itr.next(); filter = filter + "*." + ext; if (itr.hasNext()) { filter += ","; } } return desc + " " + filter + ")";
String filter = "";  if(!exts.isEmpty()) { filter = filter + " ("; Iterator itr = exts.iterator(); while (itr.hasNext()) { String ext = (String)itr.next(); filter = filter + "*." + ext; if (itr.hasNext()) { filter += ","; } }  filter = filter+")"; }  return desc + filter;
    public String getDescription() {    	String filter = "(";    	Iterator itr = exts.iterator();        while (itr.hasNext()) {        	String ext = (String)itr.next();        	filter = filter + "*." + ext;        	if (itr.hasNext()) {                filter += ",";            }        }        return desc + " " + filter + ")";    }