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