Java FloatBuffer.order()
Syntax
FloatBuffer.order() has the following syntax.
public abstract ByteOrder order()
Example
In the following code shows how to use FloatBuffer.order() method.
import java.nio.FloatBuffer;
//from ww w .jav a 2 s. co m
public class Main {
public static void main(String[] args) {
FloatBuffer floatBuffer = FloatBuffer.allocate(10);
floatBuffer.put(1,1.23F);
System.out.println(floatBuffer.order());
}
}
The code above generates the following result.