Created
June 30, 2016 01:51
-
-
Save zakki/7ce86da2b691164c371fb5f6c582de03 to your computer and use it in GitHub Desktop.
This file contains 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
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