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