Java IO Tutorial - 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;
/* ww w. j a va 2s  . c o 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.