@@ -0,0 +1,518 @@
+package com.njust.test.juc;%0A%0Aimport java.util.concurrent.atomic.AtomicInteger;%0A%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0A%0Apublic class AtomicIntegerDemo%0A%7B%0A    @Test%0A    public void test01()%0A    %7B%0A        AtomicInteger atomicInteger = new AtomicInteger(4);%0A        Assert.assertEquals(4, atomicInteger.get());%0A        %0A        Assert.assertEquals(12, atomicInteger.addAndGet(8));%0A        %0A        Assert.assertEquals(12, atomicInteger.getAndAdd(6));%0A        Assert.assertEquals(18, atomicInteger.get());%0A    %7D%0A%7D%0A

Create AtomicIntegerDemo.java