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