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