Online Java Compiler By
JavaTpoint.com
import java.util.concurrent.atomic.AtomicInteger; public class AtomicIntegerLongValueExp3 { public static void main(String[] args) { AtomicInteger value = new AtomicInteger(1024); long value1 = value.longValue(); System.out.println("the new number is: "+value1); } }
Output