Skip to content

Instantly share code, notes, and snippets.

@zakki
Created June 30, 2016 01:51
Show Gist options
  • Save zakki/7ce86da2b691164c371fb5f6c582de03 to your computer and use it in GitHub Desktop.
Save zakki/7ce86da2b691164c371fb5f6c582de03 to your computer and use it in GitHub Desktop.
class A {
static String S = "a:" + B.S;
}
class B {
static String S = A.S;
}
class Test {
public static void main(String[] args) {
if (Math.random() > 0.5) {
System.out.println(A.S);
System.out.println(B.S);
} else {
System.out.println(B.S);
System.out.println(A.S);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment