Here you can find the source of findSizedSubdirs(final String size, final TreeSet
private static TreeSet<String> findSizedSubdirs(final String size, final TreeSet<String> themeSubdirs)
//package com.java2s; //License from project: Open Source License import java.util.TreeSet; public class Main { private static TreeSet<String> findSizedSubdirs(final String size, final TreeSet<String> themeSubdirs) { final TreeSet<String> sizedSubDirs = new TreeSet<String>(); for (String subdir : themeSubdirs) { if (subdir.startsWith(size)) { sizedSubDirs.add(subdir); }/* www. ja v a 2s . c o m*/ } return sizedSubDirs; } }