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