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