AtomicIntegerArray.length() has the following syntax.
public final int length()
In the following code shows how to use AtomicIntegerArray.length() method.
import java.util.concurrent.atomic.AtomicIntegerArray; 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.