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