Example usage for java.nio DoubleBuffer wrap

List of usage examples for java.nio DoubleBuffer wrap

Introduction

In this page you can find the example usage for java.nio DoubleBuffer wrap.

Prototype

public static DoubleBuffer wrap(double[] array, int start, int len) 

Source Link

Document

Creates a new double buffer by wrapping the given double array.

Usage

From source file:Main.java

public static void main(String[] args) {
    DoubleBuffer bb = DoubleBuffer.wrap(new double[] { 98765, 98765 }, 0, 1);

    bb.rewind();//from   w  ww  . jav a 2 s . c  o  m

    System.out.println(Arrays.toString(bb.array()));
}