Code example for LinkedHashSet

Methods: add

0
    this.registeredFiles = new LinkedHashSet<String>();
  } 
 
  public synchronized void register (final String name)
  { 
    this.registeredFiles.add(name);
  } 
 
  public synchronized String[] getRegisteredFiles ()
  { 
    return this.registeredFiles.toArray(new String[registeredFiles.size()]);
  } 
}