Online Java Compiler By
JavaTpoint.com
import java.util.concurrent.atomic.AtomicLong; public class AtomicLongDoubleValueExample4 { public static void main (String [] args) { AtomicLong atomiclong = new AtomicLong(-10); atomiclong.decrementAndGet(); //Returns the initialized value as Double Double result = atomiclong.doubleValue(); //Prints the double value off atomic long System.out.println(result); } }
Output