Code example for AtomicInteger

Methods: intValue

0
 
    @Test 
    public void finish() 
    { 
        assertEquals(2, v1.intValue());
        assertEquals(2, v2.intValue());
    } 
} 
Connect your IDE to all the code out there  Get Codota for Java