Java AtomicLongArray(int length) Constructor
Syntax
AtomicLongArray(int length) constructor from AtomicLongArray has the following syntax.
public AtomicLongArray(int length)
Example
In the following code shows how to use AtomicLongArray.AtomicLongArray(int length) constructor.
import java.util.concurrent.atomic.AtomicLongArray;
/* w w w . ja v a 2 s.c o m*/
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.