Skip to content

Instantly share code, notes, and snippets.

@Visgean
Created May 12, 2017 15:59
Show Gist options
  • Save Visgean/7fdbd954744c925e226169b0b55badb3 to your computer and use it in GitHub Desktop.
Save Visgean/7fdbd954744c925e226169b0b55badb3 to your computer and use it in GitHub Desktop.
import java.util.HashSet;
public class ABTest {
private HashSet<String> very_priv = new HashSet<String>(10);
public static void main(String[] args) {
ABTest a = new ABTest();
ABTest b = new ABTest();
a.addToPrivate("Shit");
b.addToPrivate("Nope");
System.out.println(a.getRepr());
System.out.println(b.getRepr());
}
public void addToPrivate(String s) {
very_priv.add(s);
}
public String getRepr(){
return very_priv.toString();
}
}
$ java ABTest
[Shit]
[Nope]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment