Java DoubleBuffer.put(double[] src)
Syntax
DoubleBuffer.put(double[] src) has the following syntax.
public final DoubleBuffer put(double[] src)
Example
In the following code shows how to use DoubleBuffer.put(double[] src) method.
import java.nio.DoubleBuffer;
import java.util.Arrays;
// w ww . j a v a 2 s . c o m
public class Main {
private static final int BSIZE = 1024;
public static void main(String[] args) {
DoubleBuffer bb = DoubleBuffer.allocate(BSIZE);
bb.put(new double[]{98765,12345});
System.out.println(Arrays.toString(bb.array()));
}
}
The code above generates the following result.