AtomicBoolean.toString() has the following syntax.
public String toString()
In the following code shows how to use AtomicBoolean.toString() method.
/*from w w w .j av a 2s . c o m*/ import java.util.concurrent.atomic.AtomicBoolean; public class Main { public static void main(String[] argv) throws Exception { AtomicBoolean atomicBoolean = new AtomicBoolean(); System.out.println(atomicBoolean.toString()); } }
The code above generates the following result.