Online Java Compiler By
JavaTpoint.com
import java.util.concurrent.atomic.AtomicLong; public class AtomicLongLazySetExample3 { public static void main (String [] args) { AtomicLong atomiclong = new AtomicLong(20); //Sets the Specified value atomiclong.lazySet(-20L); //Prints the Set value System.out.println(atomiclong); } }
Output