Java AtomicIntegerArray.length()
Syntax
AtomicIntegerArray.length() has the following syntax.
public final int length()
Example
In the following code shows how to use AtomicIntegerArray.length() method.
import java.util.concurrent.atomic.AtomicIntegerArray;
/*from w ww . ja va 2 s. c om*/
public class Main {
public static void main(String[] argv) throws Exception {
AtomicIntegerArray atomicIntegerArray = new AtomicIntegerArray(10);
System.out.println(atomicIntegerArray.length());
}
}
The code above generates the following result.