AtomicLongArray.toString() has the following syntax.
public String toString()
In the following code shows how to use AtomicLongArray.toString() method.
import java.util.concurrent.atomic.AtomicLongArray; public class Main { public static void main(String[] argv) throws Exception { AtomicLongArray atomicLongArray = new AtomicLongArray(10); System.out.println(atomicLongArray.toString()); } }
The code above generates the following result.