Java DoubleBuffer.get(int index)
Syntax
DoubleBuffer.get(int index) has the following syntax.
public abstract double get(int index)
Example
In the following code shows how to use DoubleBuffer.get(int index) method.
//from w w w . j a va2s . c om
import java.nio.DoubleBuffer;
public class Main {
private static final int BSIZE = 1024;
public static void main(String[] args) {
DoubleBuffer bb = DoubleBuffer.allocate(BSIZE);
bb.put(98765);
System.out.println(bb.get(0));
}
}
The code above generates the following result.