Code example for HashSet

Methods: toArraysize

0
    } 
     
    public String[] getPackageList() {
        int size = pkgList.size();
        if (size == 0) {
            return null; 
        } 
        String list[] = new String[size];
        pkgList.toArray(list);
        return list;
    } 
} 
Contextual code suggestions in your IDE  Get Codota for Java