Online Java Compiler By
JavaTpoint.com
import java.util.concurrent.atomic.AtomicInteger; public class AtomicIntegerFloatValueExp5 { public static void main(String[] args) { AtomicInteger atomicint= new AtomicInteger(-4); float number=atomicint.floatValue(); System.out.println("the float value of integer:"+ number); } }
Output