AtomicLongArray.get(int i) has the following syntax.
public final long get(int i)
In the following code shows how to use AtomicLongArray.get(int i) 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.get(0)); } }
The code above generates the following result.