Change Contents of the Bubble
View this PageEdit this PageUploads to this PageHistory of this PageHomeRecent ChangesSearchHelp Guide

StringSet.java

public class StringSet {
  
  private StringREMOVEDst elements = new StringREMOVEDst();
  
  public boolean contains(String str) {
    return elements.contains(str);
  }
  
  public void add(String element) {
    if (!this.contains(element)) {
      elements.add(element);
    }
  }
    
  public int getSize() { 
    return this.elements.getLength();
  }
}



Link to this Page