AtomicLongArray(int length) constructor from AtomicLongArray has the following syntax.
public AtomicLongArray(int length)
In the following code shows how to use AtomicLongArray.AtomicLongArray(int length) constructor.
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); } }
The code above generates the following result.