Created
May 12, 2017 15:59
-
-
Save Visgean/7fdbd954744c925e226169b0b55badb3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ java ABTest | |
[Shit] | |
[Nope] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment