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
package empty; | |
import java.util.concurrent.atomic.AtomicInteger; | |
public class Foo { | |
int x = 0; | |
volatile int y = 0; | |
public static void main(String[] args) throws InterruptedException { | |
AtomicInteger counter = new AtomicInteger(0); |