Online Java Compiler By
JavaTpoint.com
import java.util.concurrent.atomic.AtomicInteger; public class AtomicIntegerLazySetExp2 { public static void main(String[] args) { AtomicInteger value = new AtomicInteger(20); value.lazySet(12);; System.out.println("the new number is: " + value); } }
Output